flotilla/src/app/components/NoteContentMinimalThread.svelte
2026-07-29 15:52:13 -07:00

16 lines
443 B
Svelte

<script lang="ts">
import type {ComponentProps} from "svelte"
import {tagSpec, tagValue} from "@welshman/util"
import ContentMinimal from "@app/components/ContentMinimal.svelte"
const props: ComponentProps<typeof ContentMinimal> = $props()
const title = tagValue(tagSpec("title"), props.event.tags)
</script>
{#if title}
<span class="text-sm">{title}</span>
{/if}
{#if props.event.content}
<ContentMinimal {...props} />
{/if}