@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
53 lines • 2.93 kB
JavaScript
const _excluded = ["bold", "width", "height"];
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
import React from "react";
import PropTypes from "prop-types";
const IconScooter = props => {
const _props$bold = props.bold,
bold = _props$bold === void 0 ? true : _props$bold,
_props$width = props.width,
width = _props$width === void 0 ? "24px" : _props$width,
_props$height = props.height,
height = _props$height === void 0 ? "24px" : _props$height,
restProps = _objectWithoutPropertiesLoose(props, _excluded);
if (bold) {
return /*#__PURE__*/React.createElement("svg", _extends({
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
"aria-hidden": "true",
fill: "currentColor",
width: width,
height: height
}, restProps), /*#__PURE__*/React.createElement("g", {
"clip-path": "url(#a)"
}, /*#__PURE__*/React.createElement("path", {
d: "M19.87 13.125h-.063l-2.994-8.98a1.125 1.125 0 0 0-1.067-.77h-3a1.125 1.125 0 0 0 0 2.25h2.189l1.39 4.17-5.586 6.33H7.796a3.75 3.75 0 1 0-.24 2.25h3.69a1.13 1.13 0 0 0 .844-.38l5.062-5.732.525 1.576a3.75 3.75 0 1 0 2.194-.714m-15.75 5.25a1.5 1.5 0 1 1 .001-3 1.5 1.5 0 0 1 0 3m15.75 0a1.5 1.5 0 1 1 .001-3 1.5 1.5 0 0 1 0 3"
})), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
id: "a"
}, /*#__PURE__*/React.createElement("path", {
d: "M0 0h24v24H0z"
}))));
}
return /*#__PURE__*/React.createElement("svg", _extends({
viewBox: "0 0 24 24",
xmlns: "http://www.w3.org/2000/svg",
"aria-hidden": "true",
fill: "currentColor",
width: width,
height: height
}, restProps), /*#__PURE__*/React.createElement("path", {
d: "M19.874 13.499q-.166 0-.33.016L16.46 4.262a.75.75 0 0 0-.712-.513h-3a.75.75 0 1 0 0 1.5h2.46l1.635 4.904-5.2 6.346H7.477a3.375 3.375 0 1 0-.172 1.5H12a.75.75 0 0 0 .58-.275l4.824-5.888.718 2.156a3.376 3.376 0 1 0 1.753-.493m-15.75 5.25a1.874 1.874 0 1 1 0-3.749 1.874 1.874 0 0 1 0 3.749m15.75 0a1.875 1.875 0 1 1 0-3.75 1.875 1.875 0 0 1 0 3.75"
}));
};
IconScooter.propTypes = process.env.NODE_ENV !== "production" ? {
bold: PropTypes.bool,
width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
className: PropTypes.string,
fill: PropTypes.string,
'aria-hidden': PropTypes.bool,
'aria-label': PropTypes.string
} : {};
export { IconScooter as default };
IconScooter;