UNPKG

@heymarco/next-auth

Version:

A complete authentication solution for web applications.

21 lines (20 loc) 482 B
// react: import { // react: default as React, } from 'react'; import { // contexts: createContext, // hooks: useContext, } from '../hooks/mock-context.js'; const BusinessContext = createContext({ model: undefined, }); // hooks: export const useBusinessContext = () => { return useContext(BusinessContext); }; export const BusinessContextProvider = (props) => { // jsx: return (React.createElement(BusinessContext.Provider, { value: props }, props.children)); };