flotilla/src/app/components/NoteContentMinimalClassified.svelte

20 lines
501 B
Svelte
Raw Normal View History

2026-02-03 19:00:13 +00:00
<script lang="ts">
import type {ComponentProps} from "svelte"
2026-07-28 16:16:26 +00:00
import {Classified} from "@welshman/domain"
import {reader} from "@app/core"
2026-02-03 19:00:13 +00:00
import ContentMinimal from "@app/components/ContentMinimal.svelte"
const props: ComponentProps<typeof ContentMinimal> = $props()
2026-07-28 16:16:26 +00:00
const classified = reader(Classified)(props.event)
const title = classified.title()
2026-02-03 19:00:13 +00:00
</script>
{#if title}
<span class="text-sm">{title}</span>
{/if}
{#if props.event.content}
<ContentMinimal {...props} />
{/if}