//#region src/core/vuiProvider/reducers.ts
const toastsReducer = (state, action) => {
	switch (action.type) {
		case "add": return { list: [action.toast, ...state.list] };
		case "remove": return { list: state.list.filter((t) => t.id !== action.toast.id) };
		default: throw new Error(`Unhandled action type: ${action.type}`);
	}
};
const genericReducer = (state, action) => state = action;

//#endregion
export { genericReducer, toastsReducer };
globalThis.__vuiVersion__ = "4.0.0"
//# sourceMappingURL=reducers.js.map