({ children, element })
| 10 | export const renderToggleAboveNodes: RenderNodeWrapper = () => ToggleAboveNodes; |
| 11 | |
| 12 | const ToggleAboveNodes: RenderNodeWrapperFunction = ({ children, element }) => { |
| 13 | const isVisible = useIsVisible(element.id as string); |
| 14 | |
| 15 | if (isVisible) return children; |
| 16 | |
| 17 | return <div style={hiddenStyle}>{children}</div>; |
| 18 | }; |
| 19 | |
| 20 | const hiddenStyle: React.CSSProperties = { |
| 21 | height: 0, |
nothing calls this directly
no test coverage detected
searching dependent graphs…