import { createSlice } from "@reduxjs/toolkit";
const initialState = {
  description: "",
  messageText: ""
};
const errorSlice = createSlice({
  name: "error",
  initialState,
  reducers: {
    set: (_, actions2) => actions2.payload,
    clear: () => initialState
  }
});
const { actions } = errorSlice;
const errorReducer = errorSlice.reducer;
export {
  actions,
  errorReducer
};
