MCPcopy
hub / github.com/code-hike/codehike / Page

Function Page

apps/web/demos/api-reference/page.tsx:22–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20})
21
22export default function Page() {
23 const { resource, children } = parseRoot(Content, Schema)
24 const { main, extra, code } = resource
25 return (
26 <div className="prose prose-invert">
27 {children}
28 <div>
29 <div className="relative flex flex-row gap-12 mb-24">
30 <div className="flex-1">
31 {/* Main Properties */}
32 <section>
33 <h3 className="mt-8 border-b border-zinc-700">
34 {main.title}
35 </h3>
36 {main.blocks.map((property, i) => (
37 <Property property={property} key={i} />
38 ))}
39 </section>
40 {/* Extra Properties */}
41 <section></section>
42 </div>
43 <div className="not-prose max-w-sm w-full">
44 <div className="sticky top-16">
45 <Code codeblock={code} />
46 </div>
47 </div>
48 </div>
49 </div>
50 </div>
51 )
52}
53
54async function Code({ codeblock }: { codeblock: RawCode }) {
55 const highlighted = await highlight(

Callers

nothing calls this directly

Calls 1

parseRootFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…