14 lines
309 B
TypeScript
14 lines
309 B
TypeScript
import { configureStore } from '@reduxjs/toolkit';
|
|
import authReducer from '../slices/authSlice.ts'
|
|
const store = configureStore({
|
|
reducer: {
|
|
auth: authReducer,
|
|
},
|
|
});
|
|
|
|
export type RootState = ReturnType<typeof store.getState>;
|
|
export type AppDispatch = typeof store.dispatch;
|
|
export default store;
|
|
|
|
|