import { create } from "zustand"; interface CursorState { x: number; y: number; zoom: number; set: (p: Partial) => void; } /** Kept separate from the canvas store so mouse moves never re-render the graph. */ export const useCursorStore = create((set) => ({ x: 0, y: 0, zoom: 1, set: (p) => set(p), }));