2024-07-31 18:25:38 +02:00
|
|
|
<script lang="ts">
|
|
|
|
|
import { shortcut } from '$lib/actions/shortcut';
|
2025-06-02 09:47:23 -05:00
|
|
|
import { IconButton } from '@immich/ui';
|
2024-07-31 18:25:38 +02:00
|
|
|
import { mdiInformationOutline } from '@mdi/js';
|
|
|
|
|
import { t } from 'svelte-i18n';
|
|
|
|
|
|
2024-11-14 08:43:25 -06:00
|
|
|
interface Props {
|
|
|
|
|
onShowDetail: () => void;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
let { onShowDetail }: Props = $props();
|
2024-07-31 18:25:38 +02:00
|
|
|
</script>
|
|
|
|
|
|
2025-05-21 18:12:00 +02:00
|
|
|
<svelte:document use:shortcut={{ shortcut: { key: 'i' }, onShortcut: onShowDetail }} />
|
2024-07-31 18:25:38 +02:00
|
|
|
|
2025-06-02 09:47:23 -05:00
|
|
|
<IconButton
|
|
|
|
|
color="secondary"
|
|
|
|
|
shape="round"
|
|
|
|
|
variant="ghost"
|
|
|
|
|
icon={mdiInformationOutline}
|
|
|
|
|
onclick={onShowDetail}
|
|
|
|
|
aria-label={$t('info')}
|
|
|
|
|
/>
|