// resources\assets\ts\ContactsPage\store.ts
import { configureStore, createSlice } from '@reduxjs/toolkit';
import { rootReducer } from './rootReducer'; 

// const authSlice = createSlice({
//   name: 'auth',
//   initialState: {
//     showMonitor: true,
//     showCalendar: true,
//     showDataview: true,
//     showConfig: true,
//     showUseredit: true,
//     showSystem: true,
//     showMobileConfig: true,
//     showContacts: true,
//     showDownload: true,
//     showBhb: true,
//     showLoRaWan: true,
//   },
//   reducers: {}
// });

export const store = configureStore({
  // reducer: {
  //   // auth: authSlice.reducer,
    
  // },
   reducer: rootReducer, 
});

export type RootState = ReturnType<typeof store.getState>;
