2025-02-11 23:37:50 +00:00
|
|
|
<script lang="ts">
|
|
|
|
|
import type {ComponentProps} from "svelte"
|
2025-02-12 00:00:14 +00:00
|
|
|
import {EVENT_TIME} from "@welshman/util"
|
2025-02-11 23:37:50 +00:00
|
|
|
import Content from "@app/components/Content.svelte"
|
2025-02-12 00:00:14 +00:00
|
|
|
import CalendarEventDate from "@app/components/CalendarEventDate.svelte"
|
|
|
|
|
import CalendarEventHeader from "@app/components/CalendarEventHeader.svelte"
|
2025-02-11 23:37:50 +00:00
|
|
|
|
|
|
|
|
const props: ComponentProps<typeof Content> = $props()
|
|
|
|
|
</script>
|
|
|
|
|
|
2025-02-12 00:00:14 +00:00
|
|
|
{#if props.event.kind === EVENT_TIME}
|
|
|
|
|
<div class="flex items-start gap-4">
|
|
|
|
|
<CalendarEventDate event={props.event} />
|
|
|
|
|
<div class="flex flex-grow flex-col">
|
|
|
|
|
<div class="flex flex-grow flex-wrap justify-between gap-2">
|
|
|
|
|
<CalendarEventHeader event={props.event} />
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex py-2 opacity-50">
|
|
|
|
|
<div class="h-px flex-grow bg-base-content opacity-25"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<Content {...props} />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{:else}
|
|
|
|
|
<Content {...props} />
|
|
|
|
|
{/if}
|