app/components/page-shell.tsx
27 lines and 1 functions in DrDustinEdwards/dustinedwards-info, at commit 1590ba4 on 2026-10-24. This file on GitHub.
Functions
| Function | Lines | Complexity | Covered | CRAP | Mutation |
|---|---|---|---|---|---|
| PageShell | 8 to 28 | 1 | No data: no coverage report in this map | No data: no coverage report in this map | No data: no mutants in this code |
Imports
It imports app/components/shell-footer.tsx, app/components/site-header.tsx. Imported by app/routes/about.tsx, app/routes/colophon.tsx, app/routes/contact.tsx, app/routes/content-page.tsx, app/routes/cv.tsx, app/routes/gone.tsx, app/routes/kb-library.tsx, app/routes/lab.kind.tsx, app/routes/lab.tsx, app/routes/phages.tsx, app/routes/procedure.tsx, app/routes/procedure.version.tsx, app/routes/protocols.tsx, app/routes/site-map.tsx, app/routes/systems.tsx.
Source
import { ShellFooter } from "~/components/shell-footer";
import { SiteHeader } from "~/components/site-header";
/**
* The plain page: header, a `main` holding one `page-inner` column, footer. `lead` and `trail`
* sit in `main` outside the column, for a page's JSON-LD script.
*/
export function PageShell({
lead,
trail,
children,
}: {
lead?: React.ReactNode;
trail?: React.ReactNode;
children: React.ReactNode;
}) {
return (
<>
<SiteHeader />
<main className="page" id="main" tabIndex={-1}>
{lead}
<div className="page-inner">{children}</div>
{trail}
</main>
<ShellFooter />
</>
);
}