import { create } from 'zustand'
import { persist } from 'zustand/middleware'

const useThemeStore = create(persist(
  (set) => ({
    dark: true,
    toggle: () => set(s => ({ dark: !s.dark })),
  }),
  { name: 'pos-theme' }
))

export default useThemeStore
