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

interface CategoryState {
  categories: ICategory[] | [];
  setCategories: (categories: ICategory[]) => void;
}

export const useCategoryStore = create<CategoryState>((set) => ({
  categories: [],
  setCategories: (categories) => set({ categories }),
}));
