import { ProductsPageTypes } from "@/lib/types";
import { create } from "zustand";

const demoProductPageData = {
  id: 0,
  name: "",
  image: "",
};

interface ProductPageZustanType {
  product: ProductsPageTypes;
  setProducts: (data: ProductsPageTypes) => void;
}

export const useProductPageInfo = create<ProductPageZustanType>((set) => ({
  product: demoProductPageData,
  setProducts: (data) => set({ product: data }),
}));
