import { configureStore } from "@reduxjs/toolkit";
import newsChannelReducer from "./newsChannelSlice";
import newsItemReducer from "./newsItemSlice";
import namedEntityReducer from "./namedEntitySlice";

const store = configureStore({
    reducer: {
        newsChannel: newsChannelReducer,
        newsItem: newsItemReducer,
        namedEntity: namedEntityReducer,
    },
});

export type RootState = ReturnType<typeof store.getState>;
export type AppDispatch = typeof store.dispatch;
export default store;