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

const initialState = {
  pending: false,
  awaitingPaymentRequests: null,
  awaitingInspectionRequests: null,
};

const slice = createSlice({
  name: "general",
  initialState,
  extraReducers: generalExtraReducers,
});

export const { reducer: generalSlice } = slice;

export const { cleanFile } = slice.actions;
