()
| 20 | }) |
| 21 | |
| 22 | export 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 | |
| 54 | async function Code({ codeblock }: { codeblock: RawCode }) { |
| 55 | const highlighted = await highlight( |
nothing calls this directly
no test coverage detected
searching dependent graphs…