UNPKG

@cgi-learning-hub/ui

Version:

@cgi-learning-hub/ui is an open-source React component library that implements UI for HUB's features

23 lines (22 loc) 448 B
import * as t from "react"; import { P as o } from "./index-B9vkf41S.js"; import { jsx as n } from "react/jsx-runtime"; const r = /* @__PURE__ */ t.createContext(); function u({ value: e, ...s }) { return /* @__PURE__ */ n(r.Provider, { value: e ?? !0, ...s }); } process.env.NODE_ENV !== "production" && (u.propTypes = { children: o.node, value: o.bool }); const l = () => t.useContext(r) ?? !1; export { u as R, l as u };