import { create } from 'zustand'

type SideBar =
  | 'profile'
  | 'personal'
  | 'history'
  | 'voice_actor'
  | 'font'
  | 'max_token'
  | 'background'
  | 'model'
interface ChatStore {
  isSidebarOpen: boolean
  setIsSidebarOpen: (isSidebarOpen: boolean) => void
  sideBar: SideBar
  setSideBar: (sideBar: SideBar) => void
}

export const useChatStore = create<ChatStore>((set) => ({
  isSidebarOpen: false,
  setIsSidebarOpen: (isSidebarOpen: boolean) => set({ isSidebarOpen }),
  sideBar: 'profile',
  setSideBar: (sideBar: SideBar) => set({ sideBar }),
}))
