@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.
15 lines (12 loc) • 416 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var shouldUseFlex = function shouldUseFlex(props) {
return props.flex || Object.keys(props).map(function (item) {
return !(item === "children" || item === "spaceAfter" || item === "spacing" || item === "dataTest");
}).indexOf(true) !== -1;
};
var _default = shouldUseFlex;
exports.default = _default;