This commit is contained in:
Timothy Jaeryang Baek 2025-12-10 23:20:38 -05:00
parent ceae3d48e6
commit 6812d3b9d1

View file

@ -16,6 +16,7 @@
import ChevronDown from '$lib/components/icons/ChevronDown.svelte'; import ChevronDown from '$lib/components/icons/ChevronDown.svelte';
import ChevronRight from '$lib/components/icons/ChevronRight.svelte'; import ChevronRight from '$lib/components/icons/ChevronRight.svelte';
import PageEdit from '$lib/components/icons/PageEdit.svelte'; import PageEdit from '$lib/components/icons/PageEdit.svelte';
import DocumentPage from '$lib/components/icons/DocumentPage.svelte';
const i18n = getContext('i18n'); const i18n = getContext('i18n');
const dispatch = createEventDispatcher(); const dispatch = createEventDispatcher();
@ -165,10 +166,14 @@
<Tooltip content={$i18n.t('Note')} placement="top"> <Tooltip content={$i18n.t('Note')} placement="top">
<PageEdit className="size-4" /> <PageEdit className="size-4" />
</Tooltip> </Tooltip>
{:else} {:else if item.type === 'collection'}
<Tooltip content={$i18n.t('Collection')} placement="top"> <Tooltip content={$i18n.t('Collection')} placement="top">
<Database className="size-4" /> <Database className="size-4" />
</Tooltip> </Tooltip>
{:else if item.type === 'file'}
<Tooltip content={$i18n.t('File')} placement="top">
<DocumentPage className="size-4" />
</Tooltip>
{/if} {/if}
<Tooltip <Tooltip