import { create } from "zustand";

type HomeStore = {
    showFilter: boolean;
    setShowFilter: (value: boolean) => void;
    step: 'filter' | 'items';
    setStep: (value: 'filter' | 'items') => void;
}

export const useHomeStore = create<HomeStore>((set) => ({
    showFilter: false,
    setShowFilter: (value: boolean) => set({ showFilter: value }),
    step: 'filter',
    setStep: (value: 'filter' | 'items') => set({ step: value }),
}))