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

const initialState = {
  pending: false,
  modalState: false,
  driverRequests: [],
  driverCars: [],
  profile: null,
};

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

export const { reducer: driverSlice } = slice;
