flotilla/src/app/components/NoteContentMinimalBoard.svelte

16 lines
523 B
Svelte
Raw Normal View History

<script lang="ts">
import type {ComponentProps} from "svelte"
import {Pinboard} from "@welshman/domain"
import ContentMinimal from "@app/components/ContentMinimal.svelte"
import {reader} from "@app/core"
const props: ComponentProps<typeof ContentMinimal> = $props()
2026-08-22 20:12:11 +00:00
const board = $derived(reader(Pinboard)(props.event))
</script>
<span class="text-sm">{board?.title() || "Untitled shelf"}</span>
{#if board?.description()}
<span class="truncate min-w-0 block opacity-70">{board.description()}</span>
{/if}