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

export const useSharedStore = create<SharedStoreType>((set) => ({
  openSidebar: false,
  setOpenSidebar: (value) => set({ openSidebar: value }),
  openNewMessage: false,
  setOpenNewMessage: (value) => set({ openNewMessage: value }),
  openBuySpace: false,
  setOpenBuySpace: (value) => set({ openBuySpace: value }),
  hasSubMenu: false,
  setSubtMenu: (value: boolean) => set({ hasSubMenu: value }),
  openReportBug: false,
  setOpenReportBug: (value) => set({ openReportBug: value }),
}));
