@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.
26 lines (23 loc) • 766 B
JavaScript
import _extends from "@babel/runtime/helpers/esm/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
import * as React from "react";
import Svg from "../Svg";
var Image = function Image(_ref) {
var _ref$height = _ref.height,
height = _ref$height === void 0 ? 150 : _ref$height,
_ref$width = _ref.width,
width = _ref$width === void 0 ? 300 : _ref$width,
props = _objectWithoutProperties(_ref, ["height", "width"]);
return /*#__PURE__*/React.createElement(Svg, _extends({}, props, {
height: height,
width: width
}), /*#__PURE__*/React.createElement("rect", {
x: "0",
y: "0",
rx: "6",
ry: "6",
width: "100%",
height: "100%"
}));
};
export default Image;