silphius/app/context/main-entity.js
2024-06-22 23:32:57 -05:00

10 lines
175 B
JavaScript

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