@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
59 lines • 3.55 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 IconDetective = 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: "M22.875 9.75h-2.324l-4.068-5.603a1.875 1.875 0 0 0-2.963-.088l-1.202 1.393-.027.033a.375.375 0 0 1-.582 0l-.027-.033L10.48 4.06a1.875 1.875 0 0 0-2.963.088L3.449 9.75H1.125a1.125 1.125 0 0 0 0 2.25h21.75a1.125 1.125 0 1 0 0-2.25M9.058 5.855l.909 1.053a2.625 2.625 0 0 0 4.066 0l.909-1.053L17.77 9.75H6.23zm7.817 7.27a3.76 3.76 0 0 0-3.578 2.625h-2.594a3.75 3.75 0 1 0 0 2.25h2.595a3.75 3.75 0 1 0 3.577-4.875m-9.75 5.25a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3m9.75 0a1.5 1.5 0 1 1 0-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("g", {
"clip-path": "url(#a)"
}, /*#__PURE__*/React.createElement("path", {
d: "M23.25 10.5h-2.617l-4.454-6.133a1.5 1.5 0 0 0-2.372-.068l-1.205 1.397-.019.022a.746.746 0 0 1-1.166 0l-.019-.022L10.193 4.3a1.5 1.5 0 0 0-2.372.068L3.368 10.5H.75a.75.75 0 1 0 0 1.5h22.5a.75.75 0 1 0 0-1.5M9.032 5.25l.018.02 1.204 1.397a2.25 2.25 0 0 0 3.492 0L14.95 5.27l.016-.022 3.812 5.25H5.221zm7.843 8.25a3.375 3.375 0 0 0-3.353 3h-3.044a3.375 3.375 0 1 0-.171 1.5h3.386a3.376 3.376 0 1 0 3.182-4.5m-9.75 5.25a1.875 1.875 0 1 1 0-3.751 1.875 1.875 0 0 1 0 3.75m9.75 0a1.875 1.875 0 1 1 0-3.751 1.875 1.875 0 0 1 0 3.75"
})), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
id: "a"
}, /*#__PURE__*/React.createElement("path", {
d: "M0 0h24v24H0z"
}))));
};
IconDetective.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 { IconDetective as default };
IconDetective;