2024-08-07 16:54:48 +02:00
|
|
|
<script lang="ts">
|
2025-10-18 18:51:11 +02:00
|
|
|
import { CircleQuestionMark } from '@lucide/svelte';
|
2025-06-21 21:07:36 +02:00
|
|
|
import { i18n } from '$lib/i18n.svelte';
|
2025-11-11 17:23:24 +01:00
|
|
|
import type { Snippet } from 'svelte';
|
2024-08-07 16:54:48 +02:00
|
|
|
|
2025-11-11 17:23:24 +01:00
|
|
|
let {
|
|
|
|
|
link,
|
|
|
|
|
class: className = '',
|
|
|
|
|
children,
|
|
|
|
|
}: {
|
|
|
|
|
link: string;
|
|
|
|
|
class?: string;
|
|
|
|
|
children: Snippet;
|
|
|
|
|
} = $props();
|
2024-05-07 17:19:53 +02:00
|
|
|
</script>
|
|
|
|
|
|
2025-11-11 17:23:24 +01:00
|
|
|
<div class="text-sm bg-secondary rounded border flex flex-row items-center p-2 {className}">
|
2025-10-18 18:51:11 +02:00
|
|
|
<CircleQuestionMark size="16" class="w-4 mr-2 shrink-0 grow-0" />
|
2025-02-02 11:17:22 +01:00
|
|
|
<div>
|
2025-11-11 17:23:24 +01:00
|
|
|
{@render children()}
|
2025-02-02 11:17:22 +01:00
|
|
|
{#if link}
|
|
|
|
|
<a href={link} target="_blank" class="text-sm text-link hover:underline">
|
2025-06-21 21:07:36 +02:00
|
|
|
{i18n._('menu.more')}
|
2025-02-02 11:17:22 +01:00
|
|
|
</a>
|
|
|
|
|
{/if}
|
|
|
|
|
</div>
|
2024-05-07 17:19:53 +02:00
|
|
|
</div>
|