import {configureStore} from '@reduxjs/toolkit';
import TodosReducer from '../features/todos/todosSlice';
import MainReducer from '@features/mainSlice';
import PageReducer from '@features/pageSlice';
import GameListReducer from '@features/gameListSlice';
import PayReducer from '@features/paySlice';
import SocketReducer from '@features/socketSlice';
import TurnplateReducer from '@features/turnplateSlice';
import MailReducer from '@features/mailSlice';
import RedPackReducer from '@features/redpackSlice';
import AgentReducer from '@features/agentSlice';
import ActivityReducer from '@features/activitySlice';
import CheckInReducer from '@features/checkInSlice';
import ProtectReducer from '@features/protectSlice';
export default configureStore({
    reducer: {
        // todos: TodosReducer,
        main:MainReducer,
        page:PageReducer,
        gamelist:GameListReducer,
        pay:PayReducer,
        socket:SocketReducer,
        turnplate:TurnplateReducer,
        mail:MailReducer,
        redpack:RedPackReducer,
        agent:AgentReducer,
        activity:ActivityReducer,
        checkIn:CheckInReducer,
        protect:ProtectReducer,
    },
    middleware:(getDefaultMiddleware => {
        let middlewares=getDefaultMiddleware();
        return middlewares;
    })
});
