UNPKG

@trellixio/roaster-coffee

Version:
32 lines (26 loc) 845 B
'use strict'; var React = require('react'); function _interopNamespaceDefault(e) { var n = Object.create(null); if (e) { for (var k in e) { n[k] = e[k]; } } n.default = e; return Object.freeze(n); } var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React); const ActionListContext = React__namespace.createContext(null); const ActionListProvider = ActionListContext.Provider; const useActionListContext = () => { const context = React__namespace.useContext(ActionListContext); if (context == null) { throw new Error("ActionList components must be wrapped in <ActionList />"); } return context; }; exports.ActionListContext = ActionListContext; exports.ActionListProvider = ActionListProvider; exports.useActionListContext = useActionListContext; //# sourceMappingURL=ActionList.context.js.map