mirror of
https://github.com/immich-app/immich.git
synced 2025-12-21 01:11:16 +03:00
15 lines
371 B
Svelte
15 lines
371 B
Svelte
<script lang="ts">
|
|
import { IconButton, type ActionItem } from '@immich/ui';
|
|
|
|
type Props = {
|
|
action: ActionItem;
|
|
};
|
|
|
|
const { action }: Props = $props();
|
|
const { title, icon, onAction } = $derived(action);
|
|
</script>
|
|
|
|
{#if action.$if?.() ?? true}
|
|
<IconButton shape="round" color="primary" {icon} aria-label={title} onclick={() => onAction(action)} />
|
|
{/if}
|