// src/components/Toast/utils/ToastStore.ts
import { create } from "zustand";
var useToastStore = create((set) => ({
  toasts: [],
  addToast: (toast) => {
    const id = crypto.randomUUID();
    set((state) => ({
      toasts: [...state.toasts, { id, ...toast }]
    }));
  },
  removeToast: (id) => {
    set((state) => ({
      toasts: state.toasts.filter((t) => t.id !== id)
    }));
  }
}));
var ToastStore_default = useToastStore;
export {
  ToastStore_default as default
};
//# sourceMappingURL=index.mjs.map