import { createSlice } from "@reduxjs/toolkit";
const initialState = {
  message: "",
  ariaLive: "polite",
  id: ""
};
const liveMessage = createSlice({
  name: "liveMessage",
  initialState,
  reducers: {
    announce: (state, { payload: { message, ariaLive, id } }) => ({
      message,
      ariaLive,
      id
    })
  }
});
const { actions } = liveMessage;
const liveMessageReducer = liveMessage.reducer;
export {
  actions,
  liveMessageReducer
};
