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.

17 lines (14 loc) 487 B
import _extends from "@babel/runtime/helpers/esm/extends"; import * as React from "react"; import whiteListProps from "./helpers/whiteListProps"; import OrbitIcon from "."; var createIcon = function createIcon(def, viewBox, displayName) { var icon = function icon(props) { return /*#__PURE__*/React.createElement(OrbitIcon, _extends({ viewBox: viewBox }, whiteListProps(props)), def); }; icon.displayName = displayName; return icon; }; export default createIcon;