import { configureStore } from '@reduxjs/toolkit';
import userReducer from './user';
import scenarioReducer from './scenario';
import permissionReducer from './permission';
import commonReducer from './common';
import resultReducer from './action_results';
import timeReducer from './time';
import modalReducer from './modal';
import consoleReducer from './console';
import workoutReducer from './workout';
import dayReducer from './day';
import nightReducer from './night';
import ringReducer from './ring';
import targetReducer from './set_target';
import accessReducer from './access';

const store = configureStore({
  reducer: {
    // 添加你的 reducer
    user: userReducer,
    scenario: scenarioReducer,
    permission: permissionReducer,
    common: commonReducer,
    checkResult: resultReducer,
    codeResult: resultReducer,
    time: timeReducer,
    modal: modalReducer,
    console: consoleReducer,
    workout: workoutReducer,
    night: nightReducer,
    day: dayReducer,
    ring: ringReducer,
    target: targetReducer,
    access: accessReducer
  },
});

export default store;