@kiwicom/orbit-components
Version:
Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.
14 lines • 439 B
JavaScript
import * as React from "react";
export var accordionDefault = {
onExpand: function onExpand() {},
expanded: false,
loading: false
};
var context = /*#__PURE__*/React.createContext(accordionDefault);
context.displayName = "AccordionOrbitContext";
export var useAccordion = function useAccordion() {
return React.useContext(context);
};
var Consumer = context.Consumer,
Provider = context.Provider;
export { Consumer, Provider };