<script lang="ts">
  import type {ComponentProps} from "svelte"
  import {getTagValue} from "@welshman/util"
  import Content from "@app/components/Content.svelte"
  import Col from "@lib/components2/Col.svelte"
  import Text from "@lib/components2/Text.svelte"

  const props: ComponentProps<typeof Content> = $props()

  const title = getTagValue("title", props.event.tags)
</script>

<Col gap={2}>
  {#if title}
    <Text size="xl">{title}</Text>
  {/if}
  {#if props.event.content}
    <Content {...props} />
  {/if}
</Col>
