@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.
21 lines • 597 B
JavaScript
import * as React from "react";
export var cardDefault = {
setExpandedSections: function setExpandedSections() {},
addSection: function addSection() {},
isOpened: false,
removeSection: function removeSection() {},
roundedBorders: {
top: false,
bottom: false
},
index: 0,
noBorderTop: false
};
var context = /*#__PURE__*/React.createContext(cardDefault);
context.displayName = "CardOrbitContext";
export var useCard = function useCard() {
return React.useContext(context);
};
var Consumer = context.Consumer,
Provider = context.Provider;
export { Consumer, Provider };