From 3e89d2998588f8e35c524e523ba2ee853f0f6475 Mon Sep 17 00:00:00 2001 From: Maze Winther Date: Mon, 20 Apr 2026 11:31:17 +0200 Subject: refactor: restructure files to their domains, new preview overlay system, and dep graph --- apps/web/src/stores/editor-store.ts | 24 ------------------------ 1 file changed, 24 deletions(-) delete mode 100644 apps/web/src/stores/editor-store.ts (limited to 'apps/web/src/stores/editor-store.ts') diff --git a/apps/web/src/stores/editor-store.ts b/apps/web/src/stores/editor-store.ts deleted file mode 100644 index 07cb433e..00000000 --- a/apps/web/src/stores/editor-store.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { create } from "zustand"; -import { DEFAULT_CANVAS_PRESETS } from "@/lib/canvas/sizes"; -import type { TCanvasSize } from "@/lib/project/types"; - -interface EditorState { - isInitializing: boolean; - isPanelsReady: boolean; - canvasPresets: TCanvasSize[]; - setInitializing: (loading: boolean) => void; - setPanelsReady: (ready: boolean) => void; - initializeApp: () => Promise; -} - -export const useEditorStore = create()((set) => ({ - isInitializing: true, - isPanelsReady: false, - canvasPresets: DEFAULT_CANVAS_PRESETS, - setInitializing: (loading) => set({ isInitializing: loading }), - setPanelsReady: (ready) => set({ isPanelsReady: ready }), - initializeApp: async () => { - set({ isInitializing: true, isPanelsReady: false }); - set({ isPanelsReady: true, isInitializing: false }); - }, -})); -- cgit v1.3.1