18 lines
391 B
TypeScript
18 lines
391 B
TypeScript
/**
|
|
* Redux store
|
|
* @description Centralized store configuration following guidelines.
|
|
*/
|
|
|
|
import { configureStore } from '@reduxjs/toolkit';
|
|
import { authReducer } from './auth-slice';
|
|
|
|
export const store = configureStore({
|
|
reducer: {
|
|
auth: authReducer,
|
|
},
|
|
});
|
|
|
|
export type RootState = ReturnType<typeof store.getState>;
|
|
export type AppDispatch = typeof store.dispatch;
|
|
|