import { configureStore } from '@reduxjs/toolkit';
import userReducer from './features/userSlice';
import uiReducer from './features/uiSlice';

export const store = configureStore({
    reducer: {
        user: userReducer,
        ui: uiReducer,
    },
});

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