(node?: Node<NodeData> | null)
| 69 | ref === ENTRY_COMPONENT_ID || ref === ENTRY_COMPONENT_SLUG; |
| 70 | |
| 71 | const isEntryPointNode = (node?: Node<NodeData> | null) => { |
| 72 | if (!node) return false; |
| 73 | const nodeData = node?.data as NodeData | undefined; |
| 74 | const componentRef = (nodeData?.componentId ?? nodeData?.componentSlug) as string | undefined; |
| 75 | return isEntryPointComponentRef(componentRef); |
| 76 | }; |
| 77 | |
| 78 | interface CanvasProps { |
| 79 | className?: string; |
no test coverage detected