minimal streamplace frontend
1import { type ParentProps, onMount } from "solid-js";
2
3import { initAuth } from "./auth/session-manager";
4import { Header } from "./components/Header";
5
6export function Layout(props: ParentProps) {
7 onMount(() => {
8 initAuth().catch((err) => {
9 console.warn("Auth init failed:", err);
10 });
11 });
12
13 return (
14 <div class="flex h-dvh flex-col">
15 <Header />
16 <main class="flex min-h-0 flex-1 flex-col">{props.children}</main>
17 </div>
18 );
19}