2025-02-11 23:37:50 +00:00
|
|
|
<script lang="ts">
|
|
|
|
|
import type {ComponentProps} from "svelte"
|
2025-10-06 18:23:19 +00:00
|
|
|
import {EVENT_TIME, ZAP_GOAL, THREAD} from "@welshman/util"
|
|
|
|
|
import NoteContentEventTime from "@app/components/NoteContentEventTime.svelte"
|
|
|
|
|
import NoteContentThread from "@app/components/NoteContentThread.svelte"
|
|
|
|
|
import NoteContentGoal from "@app/components/NoteContentGoal.svelte"
|
2025-02-11 23:37:50 +00:00
|
|
|
import Content from "@app/components/Content.svelte"
|
|
|
|
|
|
|
|
|
|
const props: ComponentProps<typeof Content> = $props()
|
|
|
|
|
</script>
|
|
|
|
|
|
2025-02-12 00:00:14 +00:00
|
|
|
{#if props.event.kind === EVENT_TIME}
|
2025-10-06 18:23:19 +00:00
|
|
|
<NoteContentEventTime {...props} />
|
|
|
|
|
{:else if props.event.kind === THREAD}
|
|
|
|
|
<NoteContentThread {...props} />
|
|
|
|
|
{:else if props.event.kind === ZAP_GOAL}
|
|
|
|
|
<NoteContentGoal {...props} />
|
2025-02-12 00:00:14 +00:00
|
|
|
{:else}
|
|
|
|
|
<Content {...props} />
|
|
|
|
|
{/if}
|