import { StateCreator } from 'zustand';
import { MainUiSlice } from '@/types/stores';

export const createMainUiSlice: StateCreator<
  MainUiSlice,
  [],
  [],
  MainUiSlice
> = (set): MainUiSlice => ({
  mainDrawerOpen: false,
  setMainDrawerOpen: (open) => set(() => ({ mainDrawerOpen: open })),
});
