2026-08-17 15:42:14 +00:00
|
|
|
<script lang="ts">
|
|
|
|
|
import type {ComponentProps} from "svelte"
|
|
|
|
|
import {Article} 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 title = $derived(reader(Article)(props.event).title())
|
2026-08-17 15:42:14 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
{#if title}
|
|
|
|
|
<span class="text-sm">{title}</span>
|
|
|
|
|
{/if}
|
|
|
|
|
{#if props.event.content}
|
|
|
|
|
<ContentMinimal {...props} />
|
|
|
|
|
{/if}
|