1.1.2Updated a month ago
import { Navbar } from "@islands/Navbar.tsx";

import { type PageProps } from "$fresh/server.ts";
import { Drawer } from "@components/ui/Drawer.tsx";
import { Partial } from "$fresh/runtime.ts";
export default function App({ Component, state: { user } }: PageProps) {
  return (
    <html>
      <head>
        <meta charset="utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Viapak</title>
        <link rel="stylesheet" href="/styles.css" />
      </head>
      <body f-client-nav>
        <Partial name="body">
          <Navbar />
          { user || true ? <>
            <Drawer>
              <Component />
            </Drawer>
          </> : <>
            <div>WIP</div>
          </> }
        </Partial>
      </body>
    </html>
  );
}