@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
47 lines • 2.54 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 IconMail = 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.5 4.125h-18A1.125 1.125 0 0 0 2.375 5.25V18a1.875 1.875 0 0 0 1.875 1.875h16.5A1.875 1.875 0 0 0 22.625 18V5.25A1.125 1.125 0 0 0 21.5 4.125m-9 7.849L6.392 6.375h12.216zM9.2 12l-4.575 4.192V7.808zm1.664 1.526.876.804a1.125 1.125 0 0 0 1.52 0l.876-.804 4.472 4.099H6.392zM15.801 12l4.574-4.192v8.385z"
}));
}
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 4.5H3a.75.75 0 0 0-.75.75V18a1.5 1.5 0 0 0 1.5 1.5h16.5a1.5 1.5 0 0 0 1.5-1.5V5.25A.75.75 0 0 0 21 4.5m-9 7.983L4.928 6h14.144zM9.254 12 3.75 17.045V6.955zm1.11 1.017 1.125 1.036a.75.75 0 0 0 1.014 0l1.125-1.036L19.066 18H4.928zM14.746 12l5.504-5.046v10.092z"
}));
};
IconMail.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 { IconMail as default };
IconMail;