import { create } from 'zustand';

interface QuickDeliveryState {
  isDrawerHidden: boolean;
  setDrawerHidden: (hidden: boolean) => void;
  selectedSlotId: number | null;
  setSelectedSlotId: (slotId: number | null) => void;
}

export const useQuickDeliveryStore = create<QuickDeliveryState>((set) => ({
  isDrawerHidden: false,
  setDrawerHidden: (hidden: boolean) => set({ isDrawerHidden: hidden }),
  selectedSlotId: null,
  setSelectedSlotId: (slotId) => set({ selectedSlotId: slotId }),
}));