@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
47 lines • 3.05 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 IconGasPump = 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("path", {
d: "m22.294 6.266-1.81-1.811a1.127 1.127 0 1 0-1.594 1.593l1.813 1.809a.38.38 0 0 1 .11.265v7.441a.562.562 0 0 1-1.125 0v-3.562a2.625 2.625 0 0 0-2.625-2.626h-1.125V5.25a2.625 2.625 0 0 0-2.626-2.625h-7.5A2.625 2.625 0 0 0 3.188 5.25v13.875H2.064a1.125 1.125 0 1 0 0 2.25h15a1.125 1.125 0 1 0 0-2.25h-1.125v-7.5h1.124a.375.375 0 0 1 .375.376v3.562a2.812 2.812 0 1 0 5.625 0V8.122a2.6 2.6 0 0 0-.768-1.856M5.438 19.126V5.25a.375.375 0 0 1 .375-.375h7.5a.375.375 0 0 1 .374.375v13.875zm6.75-8.625a1.125 1.125 0 0 1-1.126 1.125h-3a1.125 1.125 0 1 1 0-2.25h3a1.125 1.125 0 0 1 1.126 1.125"
}));
}
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: "M21.844 6.53 20.03 4.72a.75.75 0 1 0-1.062 1.06l1.812 1.814c.14.14.218.33.219.528v7.628a.75.75 0 1 1-1.5 0V12a2.25 2.25 0 0 0-2.25-2.25h-1.5v-4.5A2.25 2.25 0 0 0 13.5 3H6a2.25 2.25 0 0 0-2.25 2.25V19.5h-1.5a.75.75 0 1 0 0 1.5h15a.75.75 0 1 0 0-1.5h-1.5v-8.25h1.5A.75.75 0 0 1 18 12v3.75a2.25 2.25 0 0 0 4.5 0V8.122a2.24 2.24 0 0 0-.656-1.591M5.25 19.5V5.25A.75.75 0 0 1 6 4.5h7.5a.75.75 0 0 1 .75.75V19.5zm7.5-9a.75.75 0 0 1-.75.75H7.5a.75.75 0 1 1 0-1.5H12a.75.75 0 0 1 .75.75"
}));
};
IconGasPump.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 { IconGasPump as default };
IconGasPump;