import type { FC, PropsWithChildren } from "hono/jsx"; import { tokensToCss } from "../lib/theme.js"; import neobrutalLight from "../styles/presets/neobrutal-light.json"; import type { WebSession } from "../lib/session.js"; const ROOT_CSS = `:root { ${tokensToCss(neobrutalLight as Record)} }`; const NavContent: FC<{ auth?: WebSession }> = ({ auth }) => ( <> {auth?.authenticated ? ( <> {auth.handle}
) : ( Log in )} ); export const BaseLayout: FC< PropsWithChildren<{ title?: string; auth?: WebSession }> > = (props) => { const { auth } = props; return ( {props.title ?? "atBB Forum"}