UNPKG

polen

Version:

A framework for delightful GraphQL developer portals

11 lines 460 B
import { jsx as _jsx } from "react/jsx-runtime"; import React from 'react'; export const GraphQLSchemaContext = React.createContext(null); export const useGraphQLSchema = () => { const schema = React.useContext(GraphQLSchemaContext); return schema; }; export const GraphQLSchemaProvider = ({ children, schema, }) => { return (_jsx(GraphQLSchemaContext.Provider, { value: schema, children: children })); }; //# sourceMappingURL=schema-context.js.map