import React from 'react';
import { createStore, combineReducers } from 'redux';
import projectReducer from '../reducers/projectReducers';
import sessionReducer from '../reducers/sessionReducer';
// import darkmodeReducer from '../reducers/darkmodeReducer';
import themeReducer from '../reducers/themeReducer';
import globalDataReducer from '../reducers/globalDataReducer';
import notificationReducer from '../reducers/notificationReducer';

// Combine the reducers from both stores
const rootReducer = combineReducers({
    projectR:projectReducer,
    sessionR:sessionReducer,
    // darkmodeR:darkmodeReducer,
    themeR:themeReducer,
    globalR:globalDataReducer,
    notificationR :notificationReducer,
});

const store = createStore(rootReducer);

export default store;
