mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-11-04 21:41:07 +00:00
21 lines
583 B
Svelte
21 lines
583 B
Svelte
<script lang="ts">
|
|
import { CircleQuestionMark } from '@lucide/svelte';
|
|
import { i18n } from '$lib/i18n.svelte';
|
|
|
|
export let link: string | undefined = undefined;
|
|
</script>
|
|
|
|
<div
|
|
class="text-sm bg-secondary rounded border flex flex-row items-center p-2 {$$props.class || ''}"
|
|
>
|
|
<CircleQuestionMark size="16" class="w-4 mr-2 shrink-0 grow-0" />
|
|
<div>
|
|
<slot />
|
|
{#if link}
|
|
<a href={link} target="_blank" class="text-sm text-link hover:underline">
|
|
{i18n._('menu.more')}
|
|
</a>
|
|
{/if}
|
|
</div>
|
|
</div>
|