()
| 18 | }) |
| 19 | |
| 20 | export default function Page() { |
| 21 | const { steps } = parseRoot(Content, Schema) |
| 22 | return ( |
| 23 | <SelectionProvider> |
| 24 | <Selection |
| 25 | from={steps.map((step) => ( |
| 26 | <Code codeblock={step.code} /> |
| 27 | ))} |
| 28 | /> |
| 29 | <Controls length={steps.length} /> |
| 30 | <div className="px-4"> |
| 31 | <Selection |
| 32 | from={steps.map((step) => step.children)} |
| 33 | /> |
| 34 | </div> |
| 35 | </SelectionProvider> |
| 36 | ) |
| 37 | } |
| 38 | |
| 39 | async function Code({ codeblock }: { codeblock: RawCode }) { |
| 40 | const highlighted = await highlight( |
nothing calls this directly
no test coverage detected
searching dependent graphs…