({
node,
})
| 111 | }; |
| 112 | |
| 113 | const SiteReflectionSummary: FunctionComponent<{readonly node: Node}> = ({ |
| 114 | node, |
| 115 | }) => { |
| 116 | const children = getSkippedChildren(node); |
| 117 | const {thumbnail} = getThumbnailMarkdown(node); |
| 118 | const parts = [<NodeSummary node={node} key="summary" readMore={true} />]; |
| 119 | |
| 120 | if (children.length > 0) { |
| 121 | parts.push( |
| 122 | <ul key="children"> |
| 123 | {children.map((child, key) => ( |
| 124 | <SiteNodeSectionItem key={key} node={child} /> |
| 125 | ))} |
| 126 | </ul>, |
| 127 | ); |
| 128 | } |
| 129 | if (node.essential) { |
| 130 | parts.unshift( |
| 131 | <div className="essential" key="essential"> |
| 132 | Essential |
| 133 | </div>, |
| 134 | ); |
| 135 | } |
| 136 | |
| 137 | return ( |
| 138 | <SiteSection |
| 139 | title={<NodeName node={node} />} |
| 140 | id={node.url} |
| 141 | dataId={node.id} |
| 142 | thumbnail={thumbnail} |
| 143 | > |
| 144 | {parts} |
| 145 | </SiteSection> |
| 146 | ); |
| 147 | }; |
| 148 | |
| 149 | const SiteNodeSectionBlock: FunctionComponent<{ |
| 150 | readonly children: ReactNode; |
nothing calls this directly
no test coverage detected
searching dependent graphs…