mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-20 22:07:15 +00:00
16 lines
402 B
TypeScript
16 lines
402 B
TypeScript
import { configureStore } from "@reduxjs/toolkit";
|
|
import { TypedUseSelectorHook, useSelector } from "react-redux";
|
|
import shortcutReducer from "./modules/shortcut";
|
|
|
|
const store = configureStore({
|
|
reducer: {
|
|
shortcut: shortcutReducer,
|
|
},
|
|
});
|
|
|
|
type AppState = ReturnType<typeof store.getState>;
|
|
|
|
export const useAppSelector: TypedUseSelectorHook<AppState> = useSelector;
|
|
|
|
export default store;
|