feat: Add Shortcut Keys, activeSubTool state management and improve user avatar handling

This commit is contained in:
2025-04-09 17:43:44 +05:30
parent 937241d28b
commit 03e9bcc740
19 changed files with 572 additions and 296 deletions

View File

@@ -248,6 +248,11 @@ export const useActiveTool = create<any>((set: any) => ({
setActiveTool: (x: any) => set({ activeTool: x }),
}));
export const useActiveSubTool = create<any>((set: any) => ({
activeSubTool: "cursor",
setActiveSubTool: (x: any) => set({ activeSubTool: x }),
}));
export const use2DUndoRedo = create<any>((set: any) => ({
is2DUndoRedo: null,
set2DUndoRedo: (x: any) => set({ is2DUndoRedo: x }),