refac
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Tooltip from '$lib/components/common/Tooltip.svelte';
|
|
||||||
import type { Token } from 'marked';
|
import type { Token } from 'marked';
|
||||||
|
import Tooltip from '$lib/components/common/Tooltip.svelte';
|
||||||
|
|
||||||
export let token: Token;
|
export let token: Token;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Tooltip as="span" className="mention" content={token.id} placement="top">
|
<Tooltip as="span" className="mention" content={token.id} placement="top">
|
||||||
{token.triggerChar}{token.label}
|
{token?.triggerChar ?? '@'}{token?.label ?? token?.id}
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
|
|||||||
Reference in New Issue
Block a user