2024-10-15 22:13:11 +00:00
|
|
|
<script lang="ts">
|
2025-02-04 00:37:14 +00:00
|
|
|
import type {Snippet} from "svelte"
|
2024-10-15 22:52:30 +00:00
|
|
|
import {pubkey} from "@welshman/app"
|
2026-01-30 22:14:12 +00:00
|
|
|
import Dialog from "@lib/components/Dialog.svelte"
|
2024-10-15 22:13:11 +00:00
|
|
|
import Landing from "@app/components/Landing.svelte"
|
|
|
|
|
import Toast from "@app/components/Toast.svelte"
|
|
|
|
|
import PrimaryNav from "@app/components/PrimaryNav.svelte"
|
2026-03-11 23:29:24 +00:00
|
|
|
import {modal} from "@app/util/modal"
|
2024-11-27 00:39:49 +00:00
|
|
|
|
2025-02-04 00:37:14 +00:00
|
|
|
interface Props {
|
|
|
|
|
children: Snippet
|
|
|
|
|
}
|
|
|
|
|
|
2025-02-04 01:21:46 +00:00
|
|
|
const {children}: Props = $props()
|
2024-10-15 22:13:11 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<div class="flex h-screen overflow-hidden">
|
2024-10-15 22:52:30 +00:00
|
|
|
{#if $pubkey}
|
|
|
|
|
<PrimaryNav>
|
2025-02-04 00:37:14 +00:00
|
|
|
{@render children?.()}
|
2024-10-15 22:52:30 +00:00
|
|
|
</PrimaryNav>
|
2026-03-11 23:29:24 +00:00
|
|
|
{:else if !$modal}
|
2026-03-17 21:55:40 +00:00
|
|
|
<Dialog noEscape children={{component: Landing, props: {}}} />
|
2024-10-15 22:52:30 +00:00
|
|
|
{/if}
|
2024-10-15 22:13:11 +00:00
|
|
|
</div>
|
|
|
|
|
<Toast />
|