| 1 | import type { ReactNode } from "react"; |
| 2 | import { Link } from "waku"; |
| 3 | import { NavCounter } from "../components/NavCounter.tsx"; |
| 4 | |
| 5 | export default function Layout({ children }: { children: ReactNode }) { |
| 6 | return ( |
| 7 | <div> |
| 8 | <nav> |
| 9 | <Link to="/">Home</Link> <Link to="/about">About</Link> |
| 10 | <NavCounter /> |
| 11 | </nav> |
| 12 | <span data-testid="layout-marker">LAYOUT_MARKER</span> |
| 13 | {children} |
| 14 | </div> |
| 15 | ); |
| 16 | } |
| 17 | |
| 18 | export const getConfig = async () => ({ render: "static" }) as const; |