import { combineReducers } from "@reduxjs/toolkit";

import auth, { InitStateAuth } from "./auth"

import invoice, { InitStateInvoice } from './invoice'
import cart from './cart'
import { Cart } from "../../model/cart";

export type RootState = {
  auth: InitStateAuth,
  invoice: InitStateInvoice,
}

const rootReducer = combineReducers({
  auth,
  invoice,
  cart,
});

export default rootReducer;