import { create } from 'zustand';

export const useImagesDetected = create((set) => ({
	images: [],
	setImagesDetected: (images) => set((state) => ({ images: [...state.images, ...images] })),
	setImageDetected: (image) => set((state) => ({ images: [...state.images, image] })),
	appendImageDetect: (images) => set((state) => ({ images: [...images] })),
	clearImagesDetected: () => set((state) => ({ images: [] })),
}));
