johnandersen777.bsky.social/knotless
git that lives in your Atmosphere account
Forked from chadtmiller.com/knotless
0
0
<script lang="ts">
import Command from '#lib/molecules/Command.svelte';
import type { Snippet } from 'svelte';
/**
* What a list or page says where its rows would be, when it has none:
* `title`, what is empty, in the reader's terms; `children`, a line on
* why, or the way out; `cmd`, a command that fills it, to copy.
*/
let { title, cmd, children }: { title: string; cmd?: string; children?: Snippet } = $props();
</script>
<div class="empty">
<p class="empty-title">{title}</p>
{#if children}<p>{@render children()}</p>{/if}
{#if cmd}<div class="empty-cmd"><Command text={cmd} /></div>{/if}
</div>