UNPKG

@trellixio/roaster-coffee

Version:
15 lines (12 loc) 483 B
import * as React from 'react'; const ActionListContext = React.createContext(null); const ActionListProvider = ActionListContext.Provider; const useActionListContext = () => { const context = React.useContext(ActionListContext); if (context == null) { throw new Error("ActionList components must be wrapped in <ActionList />"); } return context; }; export { ActionListContext, ActionListProvider, useActionListContext }; //# sourceMappingURL=ActionList.context.js.map