(node: SceneNode)
| 75 | } |
| 76 | |
| 77 | function getMainComponentSummary(node: SceneNode): { id: string; name: string } | null { |
| 78 | if (!('mainComponent' in node)) { |
| 79 | return null |
| 80 | } |
| 81 | |
| 82 | try { |
| 83 | const mainComponent = node.mainComponent |
| 84 | return mainComponent ? { id: mainComponent.id, name: mainComponent.name } : null |
| 85 | } catch { |
| 86 | return null |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | function getChildren(node: SceneNode): DesignNode[] | null { |
| 91 | if (!('children' in node)) { |
no outgoing calls
no test coverage detected