import van from "vanjs-core"; import { A } from "@vanjs/router"; import type { LayoutProps } from "../types/types"; export const Layout = ({ children /*, pageContext */ }: LayoutProps) => { const open = van.state(false); const onOpenChange = () => { const current = open.val; open.val = !current; }; return (
{children}
); };