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-08-22 20:12:11 +00:00
|
|
|
const classified = $derived(reader(Classified)(props.event))
|
|
|
|
|
const title = $derived(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}
|