MCPcopy Index your code
hub / github.com/anomalyco/models.dev / renderPage

Function renderPage

packages/web/src/render.tsx:461–478  ·  view source on GitHub ↗
(
  active: ActiveSection,
  content: unknown,
  metadata: PageMetadata = DEFAULT_PAGE_METADATA,
)

Source from the content-addressed store, hash-verified

459}
460
461function renderPage(
462 active: ActiveSection,
463 content: unknown,
464 metadata: PageMetadata = DEFAULT_PAGE_METADATA,
465): RenderedPage {
466 return {
467 html: renderToString(
468 <Fragment>
469 <Header active={active} />
470 <main class="page-scroll">{content}</main>
471 <MobileMenu active={active} />
472 <SearchDialog items={SearchItems} />
473 <HelpDialog />
474 </Fragment>,
475 ),
476 metadata,
477 };
478}
479
480function modelPageMetadata(model: ModelEntry): PageMetadata {
481 const metadata = model.metadata;

Callers 1

buildPagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected