import { configureStore } from '@reduxjs/toolkit';
import authReducer from '~t/DataPage/authorizationSlice';
import permissionGraphReducer from './permissionGraphSlice';

const store = configureStore({
  reducer: {
    auth: authReducer,
    permissionGraph: permissionGraphReducer,
  },
});

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

export default store;
