/** Every public page: the template's header, the page, and the shared church footer (ยง9). */ import { ChurchFooter } from "@crosscode/ui"; import { Header } from "./Header"; import { t } from "./load"; import type { Published } from "./types"; export function Shell({ site, path, children }: { site: Published; path: string; children: React.ReactNode }) { const template = site.snapshot.design.template; const terms = site.snapshot.pages.find((p) => p.kind === "terms"); const safeguarding = site.snapshot.pages.find((p) => p.kind === "safeguarding"); return ( <> Skip to the content
{children}
{site.church && ( {terms && {terms.navLabel}} {safeguarding && {safeguarding.navLabel}} )} /> )} ); }