refactor: shared-link service (#23770)

This commit is contained in:
Jason Rasmussen
2025-11-10 15:49:02 -05:00
committed by GitHub
parent 9e2208b8dd
commit dea95ac2e6
12 changed files with 128 additions and 163 deletions

View File

@@ -0,0 +1,19 @@
<script lang="ts">
import { IconButton, type MenuItem } from '@immich/ui';
type Props = {
action: MenuItem;
};
const { action }: Props = $props();
const { title, icon, onSelect } = $derived(action);
</script>
<IconButton
shape="round"
color="secondary"
variant="ghost"
{icon}
aria-label={title}
onclick={(event: Event) => onSelect?.({ event, item: action })}
/>