2025-02-11 23:37:50 +00:00
|
|
|
<script lang="ts">
|
|
|
|
|
import type {ComponentProps} from "svelte"
|
2026-04-16 18:30:59 +00:00
|
|
|
import {EVENT_TIME, ZAP_GOAL, THREAD, CLASSIFIED, POLL} from "@welshman/util"
|
2025-10-06 18:23:19 +00:00
|
|
|
import NoteContentEventTime from "@app/components/NoteContentEventTime.svelte"
|
|
|
|
|
import NoteContentThread from "@app/components/NoteContentThread.svelte"
|
2026-02-03 19:00:13 +00:00
|
|
|
import NoteContentClassified from "@app/components/NoteContentClassified.svelte"
|
2025-10-06 18:23:19 +00:00
|
|
|
import NoteContentGoal from "@app/components/NoteContentGoal.svelte"
|
2026-04-03 17:54:50 +00:00
|
|
|
import NoteContentPoll from "@app/components/NoteContentPoll.svelte"
|
2026-07-08 17:29:56 +00:00
|
|
|
import NoteContentPin from "@app/components/NoteContentPin.svelte"
|
|
|
|
|
import NoteContentBoard from "@app/components/NoteContentBoard.svelte"
|
2025-02-11 23:37:50 +00:00
|
|
|
import Content from "@app/components/Content.svelte"
|
2026-07-08 17:29:56 +00:00
|
|
|
import {PIN, BOARD} from "@app/pinboards"
|
2025-02-11 23:37:50 +00:00
|
|
|
|
|
|
|
|
const props: ComponentProps<typeof Content> = $props()
|
|
|
|
|
</script>
|
|
|
|
|
|
2026-02-04 00:19:14 +00:00
|
|
|
{#key props.event.id}
|
|
|
|
|
{#if props.event.kind === EVENT_TIME}
|
|
|
|
|
<NoteContentEventTime {...props} />
|
|
|
|
|
{:else if props.event.kind === THREAD}
|
|
|
|
|
<NoteContentThread {...props} />
|
|
|
|
|
{:else if props.event.kind === CLASSIFIED}
|
|
|
|
|
<NoteContentClassified {...props} />
|
|
|
|
|
{:else if props.event.kind === ZAP_GOAL}
|
|
|
|
|
<NoteContentGoal {...props} />
|
2026-04-16 18:30:59 +00:00
|
|
|
{:else if props.event.kind === POLL}
|
2026-04-03 17:54:50 +00:00
|
|
|
<NoteContentPoll {...props} />
|
2026-07-08 17:29:56 +00:00
|
|
|
{:else if props.event.kind === PIN}
|
|
|
|
|
<NoteContentPin {...props} />
|
|
|
|
|
{:else if props.event.kind === BOARD}
|
|
|
|
|
<NoteContentBoard {...props} />
|
2026-02-04 00:19:14 +00:00
|
|
|
{:else}
|
|
|
|
|
<Content {...props} />
|
|
|
|
|
{/if}
|
|
|
|
|
{/key}
|