import { jsx as _jsx } from "react/jsx-runtime";
import { createContext, useReducer } from 'react';
import { initialSessionState, sessionReducer, } from './sessionTypes';
const CommonContext = createContext({});
export function CommonProvider({ children }) {
    const [state, dispatch] = useReducer(sessionReducer, initialSessionState);
    return (_jsx(CommonContext.Provider, { value: { state, dispatch }, children: children }));
}
export default CommonContext;
