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