@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
53 lines • 2.88 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 IconHome = 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 19.125h-1.125V13.5a1.124 1.124 0 0 0 1.17-1.854l-9.22-9.223a1.875 1.875 0 0 0-2.65 0l-9.22 9.22a1.125 1.125 0 0 0 1.17 1.857v5.625H2a1.125 1.125 0 0 0 0 2.25h21a1.125 1.125 0 1 0 0-2.25m-17.625-7.72L12.5 4.28l7.125 7.125v7.72h-3.75V14.25a1.125 1.125 0 0 0-1.125-1.125h-4.5a1.125 1.125 0 0 0-1.125 1.125v4.875h-3.75zm8.25 7.72h-2.25v-3.75h2.25z"
})), /*#__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("path", {
d: "M22.5 19.5H21v-6.75l.22.22a.751.751 0 0 0 1.06-1.064L13.06 2.69a1.5 1.5 0 0 0-2.12 0l-9.22 9.217a.75.75 0 0 0 1.06 1.06L3 12.75v6.75H1.5a.75.75 0 1 0 0 1.5h21a.75.75 0 1 0 0-1.5m-18-8.25 7.5-7.5 7.5 7.5v8.25H15v-5.25a.75.75 0 0 0-.75-.75h-4.5a.75.75 0 0 0-.75.75v5.25H4.5zm9 8.25h-3V15h3z"
}));
};
IconHome.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 { IconHome as default };
IconHome;