MCPcopy Index your code
hub / github.com/tinyplex/tinybase / SiteReflectionSummary

Function SiteReflectionSummary

site/ui/SiteNodeSection.tsx:113–147  ·  view source on GitHub ↗
({
  node,
})

Source from the content-addressed store, hash-verified

111};
112
113const 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
149const SiteNodeSectionBlock: FunctionComponent<{
150 readonly children: ReactNode;

Callers

nothing calls this directly

Calls 1

getThumbnailMarkdownFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…