import { raw } from "hono/html"; export type ShellChild = | import("hono/utils/html").HtmlEscapedString | Promise; const themeInitScript = `(function(){try{var t=localStorage.getItem("theme");if(t==="dark"||t==="light")document.documentElement.setAttribute("data-theme",t)}catch(e){}})()`; const aroundFontUrl = "/public/fonts/around-regular.woff2?v=20260712-12"; export function Shell({ children, title, description, wide = false, noIndex = false, stylesheets = [], recordLinks = {}, }: { children: ShellChild; title?: string; description?: string; wide?: boolean; noIndex?: boolean; stylesheets?: string[]; recordLinks?: { publication?: string; document?: string }; }) { const pageTitle = title ? `${title} — Cameron's website` : "Cameron's website"; return ( {description && } {noIndex && } {recordLinks.publication && } {recordLinks.document && } {pageTitle} {stylesheets.map((href) => )} {raw(``)} {raw(``)}
{children}
{raw(`
Appearance
`)} ); }