flotilla/src/app/components/NoteContentBoard.svelte

18 lines
534 B
Svelte
Raw Normal View History

<script lang="ts">
import type {ComponentProps} from "svelte"
2026-07-28 16:16:26 +00:00
import {Pinboard} from "@welshman/domain"
import Content from "@app/components/Content.svelte"
2026-07-28 16:16:26 +00:00
import {reader} from "@app/core"
const props: ComponentProps<typeof Content> = $props()
2026-08-22 20:12:11 +00:00
const board = $derived(reader(Pinboard)(props.event))
</script>
<div class="flex flex-col">
2026-07-28 16:16:26 +00:00
<strong class="text-lg">{board?.title() || "Untitled shelf"}</strong>
{#if board?.description()}
<span class="text-sm opacity-70">{board.description()}</span>
{/if}
</div>