UNPKG

@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.

13 lines (11 loc) 583 B
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray"; var ALLOWED_PROPS = ["size", "color", "customColor", "className", "dataTest", "ariaHidden", "reverseOnRtl", "ariaLabel", "dataTest"]; var whiteListProps = function whiteListProps(props) { return (// $FlowExpectedError Object.assign.apply(Object, [{}].concat(_toConsumableArray(ALLOWED_PROPS.map(function (k) { return k in props ? _defineProperty({}, k, props[k]) : {}; })))) ); }; export default whiteListProps;