@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
59 lines • 3.59 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 IconCash = 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: "M23 4.875H2A1.125 1.125 0 0 0 .875 6v12A1.125 1.125 0 0 0 2 19.125h21A1.125 1.125 0 0 0 24.125 18V6A1.125 1.125 0 0 0 23 4.875m-5.512 12H7.512a5.64 5.64 0 0 0-4.387-4.387v-.976a5.64 5.64 0 0 0 4.387-4.387h9.976a5.64 5.64 0 0 0 4.387 4.387v.976a5.64 5.64 0 0 0-4.387 4.387m4.387-7.693a3.4 3.4 0 0 1-2.057-2.057h2.057zM5.182 7.125a3.4 3.4 0 0 1-2.057 2.057V7.125zm-2.057 7.693a3.4 3.4 0 0 1 2.057 2.057H3.125zm16.693 2.057a3.4 3.4 0 0 1 2.057-2.057v2.057zM12.5 8.25a3.75 3.75 0 1 0 0 7.5 3.75 3.75 0 0 0 0-7.5m0 5.25a1.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: "M12.5 8.25a3.75 3.75 0 1 0 0 7.5 3.75 3.75 0 0 0 0-7.5m0 6a2.25 2.25 0 1 1 0-4.5 2.25 2.25 0 0 1 0 4.5m10.5-9H2a.75.75 0 0 0-.75.75v12a.75.75 0 0 0 .75.75h21a.75.75 0 0 0 .75-.75V6a.75.75 0 0 0-.75-.75m-4.345 12H6.345a5.32 5.32 0 0 0-3.595-3.595v-3.31A5.32 5.32 0 0 0 6.345 6.75h12.31a5.32 5.32 0 0 0 3.595 3.595v3.31a5.32 5.32 0 0 0-3.595 3.595m3.595-8.497a3.83 3.83 0 0 1-2.003-2.003h2.003zM4.753 6.75A3.83 3.83 0 0 1 2.75 8.753V6.75zM2.75 15.247a3.83 3.83 0 0 1 2.003 2.003H2.75zm17.497 2.003a3.83 3.83 0 0 1 2.003-2.003v2.003z"
})), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
id: "a"
}, /*#__PURE__*/React.createElement("path", {
d: "M0 0h24v24H0z"
}))));
};
IconCash.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 { IconCash as default };
IconCash;