import { create } from "zustand";
import { type SharedStoreType } from "../types/SharedTypes";

export const useSharedStore = create<SharedStoreType>((set) => ({
  openSidebar: false,
  setOpenSidebar: (value) => set({ openSidebar: value }),
  hasSubMenu: false,
  setSubtMenu: (value: boolean) => set({ hasSubMenu: value }),
  subMenuName: "",
  setSubMenuName: (value: string) => set({ subMenuName: value }),
}));
