@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
47 lines • 2.99 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 IconBoat = 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.843 10.012-.968-.323V5.25A1.875 1.875 0 0 0 18 3.375h-4.875V2.25a1.125 1.125 0 1 0-2.25 0v1.125H6A1.875 1.875 0 0 0 4.125 5.25v4.44l-.968.322a1.875 1.875 0 0 0-1.282 1.78v2.458c0 6.06 9.45 8.49 9.852 8.591.18.045.367.045.546 0 .402-.1 9.852-2.532 9.852-8.591v-2.46a1.875 1.875 0 0 0-1.282-1.778M6.375 5.625h11.25v3.314l-5.27-1.756a1.1 1.1 0 0 0-.71 0L6.375 8.94zm13.5 8.625c0 3.44-5.445 5.665-7.875 6.337-2.432-.673-7.875-2.897-7.875-6.337v-2.19l6.75-2.25v5.94a1.125 1.125 0 1 0 2.25 0V9.81l6.75 2.25z"
}));
}
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.724 10.368 19.5 9.959V5.25a1.5 1.5 0 0 0-1.5-1.5h-5.25v-1.5a.75.75 0 1 0-1.5 0v1.5H6a1.5 1.5 0 0 0-1.5 1.5v4.71l-1.224.408A1.5 1.5 0 0 0 2.25 11.79v2.459c0 5.77 9.177 8.13 9.568 8.228.12.03.245.03.364 0 .39-.098 9.568-2.459 9.568-8.228v-2.46a1.5 1.5 0 0 0-1.026-1.422M6 5.25h12v4.21l-5.763-1.922a.75.75 0 0 0-.474 0L6 9.46zm14.25 9c0 2.335-2.22 4.031-4.083 5.047A21.4 21.4 0 0 1 12 20.974a21.3 21.3 0 0 1-4.143-1.662C4.463 17.47 3.75 15.543 3.75 14.25v-2.46l7.5-2.5v6.46a.75.75 0 1 0 1.5 0V9.29l7.5 2.5z"
}));
};
IconBoat.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 { IconBoat as default };
IconBoat;