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) 474 B
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties"; const _excluded = ["preset"]; import * as React from "react"; import Svg from "./Svg"; import * as Presets from "./presets"; const Skeleton = _ref => { let { preset } = _ref, props = _objectWithoutProperties(_ref, _excluded); const Component = preset ? Presets[preset] : Svg; return /*#__PURE__*/React.createElement(Component, props); }; export default Skeleton;