zone assets camera updation and rename.panel api added

This commit is contained in:
2025-04-09 18:36:25 +05:30
parent 43184a7e25
commit 1c70ccd63a
18 changed files with 355 additions and 140 deletions

View File

@@ -68,7 +68,11 @@ export const useWalls = create<any>((set: any) => ({
export const useZones = create<any>((set: any) => ({
zones: [],
setZones: (x: any) => set(() => ({ zones: x })),
setZones: (callback: any) =>
set((state: any) => ({
zones:
typeof callback === 'function' ? callback(state.zones) : callback
}))
}));
interface ZonePointsState {