import { createContext, useContext } from 'react';
import { observer } from 'mobx-react-lite';
import store from './index';

const StoreContext = createContext(store);
const useStore = () => useContext(StoreContext);

export { observer, StoreContext, useStore };
