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

const initialState = {
  loading: true,
  modalState: false,
  provinceFinancial: [],
  tickets: [],
  debts: null,
  registeredComplaints: null,
  userWaletInfo: null,
  userFinancialInfo: null,
  financialHistory: null,
  transactionInfo: null,
};

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

export const { reducer: provinceFinancialSlice } = slice;
