2025-10-06 18:23:19 +00:00
|
|
|
<script lang="ts">
|
|
|
|
|
import type {ComponentProps} from "svelte"
|
2026-09-26 04:15:39 +00:00
|
|
|
import {Thread} from "@welshman/domain"
|
2025-10-06 18:23:19 +00:00
|
|
|
import ContentMinimal from "@app/components/ContentMinimal.svelte"
|
2026-09-26 04:15:39 +00:00
|
|
|
import {reader} from "@app/core"
|
2025-10-06 18:23:19 +00:00
|
|
|
|
|
|
|
|
const props: ComponentProps<typeof ContentMinimal> = $props()
|
|
|
|
|
|
2026-09-26 04:15:39 +00:00
|
|
|
const title = reader(Thread)(props.event).title()
|
2025-10-06 18:23:19 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
{#if title}
|
|
|
|
|
<span class="text-sm">{title}</span>
|
|
|
|
|
{/if}
|
|
|
|
|
{#if props.event.content}
|
|
|
|
|
<ContentMinimal {...props} />
|
|
|
|
|
{/if}
|