MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / elements

Function elements

graph-ui/src/galaxy/coverage-shadow-scene.test.tsx:16–21  ·  view source on GitHub ↗
(children: ReactNode)

Source from the content-addressed store, hash-verified

14import { NodeCloud } from './NodeCloud';
15
16function elements(children: ReactNode): ReactElement<Record<string, unknown>>[] {
17 return Children.toArray(children).flatMap((child) => {
18 if (!isValidElement<Record<string, unknown>>(child)) return [];
19 return [child, ...elements(child.props['children'] as ReactNode)];
20 });
21}
22const node = (id: number): GraphNode => ({ id, x: 0, y: 0, z: 0, label: 'File', name: 'file', size: 3, color: '#00ff88' });
23const data: GraphData = { nodes: [node(1)], edges: [], total_nodes: 1, missed_graph: { nodes: [node(1)], edges: [], offset: { x: 200, y: 0, z: 0 } } };
24

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected