import { SubCategoryType } from "@/lib/types"; import { create } from "zustand"; interface SubCategoryZustandType { subCategory: SubCategoryType; setSubCategory: (subCategory: SubCategoryType) => void; } const demoSubCategory = { id: 0, name: "", category: 0, image: "", }; export const useSubCategory = create((set) => ({ subCategory: demoSubCategory, setSubCategory: (data) => set({}), }));