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