2024-07-31 18:25:38 +02:00
|
|
|
<script lang="ts">
|
|
|
|
|
import { shortcut } from '$lib/actions/shortcut';
|
|
|
|
|
import CircleIconButton from '$lib/components/elements/buttons/circle-icon-button.svelte';
|
|
|
|
|
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>
|
|
|
|
|
|
|
|
|
|
<svelte:window use:shortcut={{ shortcut: { key: 'i' }, onShortcut: onShowDetail }} />
|
|
|
|
|
|
2024-11-14 08:43:25 -06:00
|
|
|
<CircleIconButton color="opaque" icon={mdiInformationOutline} onclick={onShowDetail} title={$t('info')} />
|