24 lines
519 B
Svelte
24 lines
519 B
Svelte
<script lang="ts">
|
|||
|
|
import type { Snippet } from 'svelte';
|
||
|
|
import Dialog from './Dialog.svelte';
|
||
|
|
|
||
|
|
let {
|
||
|
|
children,
|
||
|
|
description = '',
|
||
|
|
open = $bindable(false),
|
||
|
|
title = 'Settings'
|
||
|
|
}: {
|
||
|
|
children?: Snippet;
|
||
|
|
description?: string;
|
||
|
|
open?: boolean;
|
||
|
|
title?: string;
|
||
|
|
} = $props();
|
||
|
|
</script>
|
||
|
|
|
||
|
|
<Dialog bind:open {description} {title}>
|
||
|
|
{#if children}
|
||
|
|
{@render children()}
|
||
|
|
{:else}
|
||
|
|
<p class="sc-muted">No settings have been configured for this application yet.</p>
|
||
|
|
{/if}
|
||
|
|
</Dialog>
|