import { createSlice } from "@reduxjs/toolkit";
import { messageExtraReducers } from "./messageExtraReducers";

const initialState = {
  pending: false,
  senderMessages: null,
  reciverMessages: null,
};

const slice = createSlice({
  name: "province",
  initialState,
  extraReducers: messageExtraReducers,
  reducers: {},
});

export const { reducer: messageSlice } = slice;
