2025-10-06 18:23:19 +00:00
|
|
|
<script lang="ts">
|
|
|
|
|
import type {ComponentProps} from "svelte"
|
2026-07-28 16:16:26 +00:00
|
|
|
import {tagSpec, tagValue} from "@welshman/util"
|
2025-10-06 18:23:19 +00:00
|
|
|
import Content from "@app/components/Content.svelte"
|
|
|
|
|
|
|
|
|
|
const props: ComponentProps<typeof Content> = $props()
|
|
|
|
|
|
2026-07-28 16:16:26 +00:00
|
|
|
const title = tagValue(tagSpec("title"), props.event.tags)
|
2025-10-06 18:23:19 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<div class="flex flex-col gap-2">
|
|
|
|
|
{#if title}
|
2026-02-03 17:49:44 +00:00
|
|
|
<p class="text-xl">{title}</p>
|
2025-10-06 18:23:19 +00:00
|
|
|
{/if}
|
|
|
|
|
{#if props.event.content}
|
|
|
|
|
<Content {...props} />
|
|
|
|
|
{/if}
|
|
|
|
|
</div>
|