import { create } from 'zustand'

interface QuickDeliveryStore {
  isDrawerHidden: boolean
  selectedSlotId: number | null
  setDrawerHidden: (hidden: boolean) => void
  setSelectedSlotId: (id: number | null) => void
}

export const useQuickDeliveryStore = create<QuickDeliveryStore>((set) => ({
  isDrawerHidden: false,
  selectedSlotId: null,
  setDrawerHidden: (hidden) => set({ isDrawerHidden: hidden }),
  setSelectedSlotId: (id) => set({ selectedSlotId: id }),
}))
