({
node,
})
| 19 | }; |
| 20 | |
| 21 | export const DemoNodeSection: FunctionComponent<{readonly node: Node}> = ({ |
| 22 | node, |
| 23 | }) => { |
| 24 | const {id, name, url} = node; |
| 25 | const {body, summary} = getThumbnailMarkdown(node); |
| 26 | const srcDoc = (node as Node & {__demoDoc?: string}).__demoDoc; |
| 27 | |
| 28 | return ( |
| 29 | <section className="s1" id={url} data-id={id}> |
| 30 | <h1>{name}</h1> |
| 31 | <iframe srcDoc={srcDoc} /> |
| 32 | {summary == null ? null : ( |
| 33 | <Markdown markdown={bumpMarkdownHeadings(summary)} /> |
| 34 | )} |
| 35 | {body == null ? null : <Markdown markdown={bumpMarkdownHeadings(body)} />} |
| 36 | </section> |
| 37 | ); |
| 38 | }; |
nothing calls this directly
no test coverage detected
searching dependent graphs…