@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.
25 lines (19 loc) • 423 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var getBasis = function getBasis(basis) {
return function (_ref) {
var theme = _ref.theme;
if (typeof basis === "undefined") {
return null;
}
if (typeof basis === "function") {
return basis(theme);
}
return basis;
};
};
var _default = getBasis;
exports.default = _default;