()
| 3 | import type { GizmoNode } from '../types'; |
| 4 | |
| 5 | export function useGizmoNode(): GizmoNode { |
| 6 | const showGizmo = useUIStore((s) => s.showGizmo); |
| 7 | |
| 8 | return useMemo<GizmoNode>( |
| 9 | () => ({ |
| 10 | nodeType: 'gizmo', |
| 11 | visible: showGizmo, |
| 12 | }), |
| 13 | [showGizmo] |
| 14 | ); |
| 15 | } |
no outgoing calls
no test coverage detected