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

const useOrderingSettingsStore = create(
  persist(
    (set) => ({
      summaryBeforeSend: false,
      setSummaryBeforeSend: (v) => set({ summaryBeforeSend: v }),
    }),
    { name: 'ordering-settings' }
  )
)

export default useOrderingSettingsStore
