import { configureStore, ThunkAction, Action } from "@reduxjs/toolkit" import plugins from "../slices/plugins" import pluginsReducer from "../slices/plugins" import pluginsTxtReducer from "../slices/pluginsTxt" export function makeStore() { return configureStore({ reducer: { pluginsTxt: pluginsTxtReducer, plugins: pluginsReducer }, }) } const store = makeStore() export type AppState = ReturnType export type AppDispatch = typeof store.dispatch export type AppThunk = ThunkAction< ReturnType, AppState, unknown, Action > export default store