12 lines
291 B
TypeScript
12 lines
291 B
TypeScript
import { configureStore } from '@reduxjs/toolkit';
|
|
import eventsReducer from './eventsSlice';
|
|
|
|
export const store = configureStore({
|
|
reducer: {
|
|
events: eventsReducer,
|
|
},
|
|
});
|
|
|
|
export type RootState = ReturnType<typeof store.getState>;
|
|
export type AppDispatch = typeof store.dispatch;
|