flotilla/src/app/components/NoteContentMinimalPin.svelte

18 lines
540 B
Svelte
Raw Normal View History

<script lang="ts">
import type {ComponentProps} from "svelte"
import {Pin} 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 loadPin = $derived(reader(Pin)(props.event))
</script>
{#await loadPin then pin}
<span class="text-sm">{pin.title() || "Untitled pin"}</span>
{#if pin.content()}
<span class="truncate min-w-0 block opacity-70">{pin.content()}</span>
{/if}
{/await}