import { create } from 'zustand';
import { IProduct } from '../types/testApi';

interface ProductState {
  products: IProduct[] | [];
  setProducts: (products: IProduct[]) => void;
}

export const useProductStore = create<ProductState>((set) => ({
  products: [],
  setProducts: (products) => set({ products }),
}));
