@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
47 lines • 2.77 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 IconHardHat = 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: "M21.875 13.913V12.75a9.41 9.41 0 0 0-6-8.747V3.75A1.875 1.875 0 0 0 14 1.875h-3A1.875 1.875 0 0 0 9.125 3.75v.253a9.41 9.41 0 0 0-6 8.747v1.162a1.875 1.875 0 0 0-1.5 1.838V18A1.875 1.875 0 0 0 3.5 19.875h18A1.875 1.875 0 0 0 23.375 18v-2.25a1.875 1.875 0 0 0-1.5-1.838m-2.25-1.163v1.125h-3.75v-7.4a7.16 7.16 0 0 1 3.75 6.275m-6-8.625v9.75h-2.25v-9.75zm-4.5 2.35v7.4h-3.75V12.75a7.16 7.16 0 0 1 3.75-6.275m12 11.15H3.875v-1.5h17.25z"
}));
}
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 14.25v-1.5a9.03 9.03 0 0 0-6-8.485V3.75a1.5 1.5 0 0 0-1.5-1.5h-3A1.5 1.5 0 0 0 9 3.75v.515a9.035 9.035 0 0 0-6 8.485v1.5a1.5 1.5 0 0 0-1.5 1.5V18A1.5 1.5 0 0 0 3 19.5h18a1.5 1.5 0 0 0 1.5-1.5v-2.25a1.5 1.5 0 0 0-1.5-1.5m-1.5-1.5v1.5H15V5.875a7.53 7.53 0 0 1 4.5 6.875m-6-9v10.5h-3V3.75zm-9 9A7.53 7.53 0 0 1 9 5.875v8.375H4.5zM21 18H3v-2.25h18z"
}));
};
IconHardHat.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 { IconHardHat as default };
IconHardHat;