High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
<script lang="ts">
import { IconButton, type ActionItem, type Size } from '@immich/ui';
type Props = {
action: ActionItem;
size?: Size;
};
const { action, size }: Props = $props();
const { title, icon, onAction } = $derived(action);
</script>
{#if icon && (action.$if?.() ?? true)}
<IconButton
{size}
shape="round"
color="primary"
{icon}
aria-label={title}
onclick={(event: MouseEvent) => onAction({ event, action })}
/>
{/if}