import { createSlice } from "@reduxjs/toolkit";
import { cityExtraReducers } from "./cityExtraReducer";
import { cityReducers } from "./cityReducers";
const initialState = {
  pending: false,
  modalState: false,
  profile: null,
  cityUsers: null,
  hatchings: null,
  hatchingAdded: "false",
};

const slice = createSlice({
  name: "city",
  initialState,
  extraReducers: cityExtraReducers,
  reducers: cityReducers,
});

export const { reducer: citySlice } = slice;

export const { reloadHatchings } = slice.actions;
