This commit is contained in:
Timothy Jaeryang Baek 2025-09-14 18:59:09 -04:00
parent 098f34f400
commit db0379030e

View file

@ -1,10 +1,10 @@
<script lang="ts">
import Tooltip from '$lib/components/common/Tooltip.svelte';
import type { Token } from 'marked';
import Tooltip from '$lib/components/common/Tooltip.svelte';
export let token: Token;
</script>
<Tooltip as="span" className="mention" content={token.id} placement="top">
{token.triggerChar}{token.label}
{token?.triggerChar ?? '@'}{token?.label ?? token?.id}
</Tooltip>