Auto minimize the sidebar in workflow editor (#848)

This commit is contained in:
Kerem Yilmaz
2024-09-18 05:59:01 -07:00
committed by GitHub
parent eadd05c4ec
commit 8f04efa7b3
2 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import { create } from "zustand";
type SidebarStore = {
collapsed: boolean;
setCollapsed: (collapsed: boolean) => void;
};
const useSidebarStore = create<SidebarStore>((set) => {
return {
collapsed: false,
setCollapsed: (collapsed: boolean) => set({ collapsed }),
};
});
export { useSidebarStore };