@trellixio/roaster-coffee
Version:
Beans' product component library
15 lines (12 loc) • 483 B
JavaScript
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