import App from '@/modules/root/App';
import React, { useReducer } from 'react';
import { basicReducer } from "@/store/reducers";
import {XMContext} from '@/store/context'
const AppContext: React.FC = (props: any) => {
const [xmState, xmDispatch] = useReducer(basicReducer, {storeUserPermissionList:[]});

  return <XMContext.Provider value={{ xmState, dispatch: xmDispatch }}><App /> </XMContext.Provider>
}

export default AppContext;