2026-07-08 17:29:56 +00:00
|
|
|
<script lang="ts">
|
|
|
|
|
import type {ComponentProps} from "svelte"
|
2026-07-28 16:16:26 +00:00
|
|
|
import {Pinboard} from "@welshman/domain"
|
2026-07-08 17:29:56 +00:00
|
|
|
import Content from "@app/components/Content.svelte"
|
2026-07-28 16:16:26 +00:00
|
|
|
import {reader} from "@app/core"
|
2026-07-08 17:29:56 +00:00
|
|
|
|
|
|
|
|
const props: ComponentProps<typeof Content> = $props()
|
|
|
|
|
|
2026-08-22 20:12:11 +00:00
|
|
|
const board = $derived(reader(Pinboard)(props.event))
|
2026-07-08 17:29:56 +00:00
|
|
|
</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>
|
2026-07-08 17:29:56 +00:00
|
|
|
{/if}
|
|
|
|
|
</div>
|