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

const initialState = {
  pending: false,
  statics: null,
  hatchingByPeriod: null,
};

const slice = createSlice({
  name: "admin",
  initialState,
  reducers: adminReducers,
  extraReducers: adminExtraReducers,
});

export const { reducer: adminSlice } = slice;

export const { EMPTY_HATCHING } = slice.actions;
