silphius/app/react/context/main-entity.js
2024-07-20 04:32:33 -05:00

10 lines
175 B
JavaScript

import {createContext, useContext} from 'react';
const context = createContext();
export default context;
export function useMainEntity() {
return useContext(context);
}