@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
47 lines • 2.86 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 IconFirstAid = 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: "M20.25 7.875h-4.125V3.75a1.875 1.875 0 0 0-1.875-1.875h-4.5A1.875 1.875 0 0 0 7.875 3.75v4.125H3.75A1.875 1.875 0 0 0 1.875 9.75v4.5a1.875 1.875 0 0 0 1.875 1.875h4.125v4.125a1.875 1.875 0 0 0 1.875 1.875h4.5a1.875 1.875 0 0 0 1.875-1.875v-4.125h4.125a1.875 1.875 0 0 0 1.875-1.874v-4.5a1.875 1.875 0 0 0-1.875-1.876m-.375 6H15a1.125 1.125 0 0 0-1.125 1.126v4.874h-3.75v-4.874A1.125 1.125 0 0 0 9 13.876H4.125v-3.75H9A1.125 1.125 0 0 0 10.125 9V4.125h3.75V9A1.125 1.125 0 0 0 15 10.126h4.875z"
}));
}
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: "M20.25 8.25h-4.5v-4.5a1.5 1.5 0 0 0-1.5-1.5h-4.5a1.5 1.5 0 0 0-1.5 1.5v4.5h-4.5a1.5 1.5 0 0 0-1.5 1.5v4.5a1.5 1.5 0 0 0 1.5 1.5h4.5v4.5a1.5 1.5 0 0 0 1.5 1.5h4.5a1.5 1.5 0 0 0 1.5-1.5v-4.5h4.5a1.5 1.5 0 0 0 1.5-1.5v-4.5a1.5 1.5 0 0 0-1.5-1.5m0 6H15a.75.75 0 0 0-.75.75v5.25h-4.5V15a.75.75 0 0 0-.75-.75H3.75v-4.5H9A.75.75 0 0 0 9.75 9V3.75h4.5V9a.75.75 0 0 0 .75.75h5.25z"
}));
};
IconFirstAid.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 { IconFirstAid as default };
IconFirstAid;