@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
47 lines • 3.2 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 IconTree = 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: "M18.36 5.59a7.5 7.5 0 0 0-13.72 0 7.125 7.125 0 0 0 5.735 13.03v3.13a1.125 1.125 0 1 0 2.25 0v-3.128a7.2 7.2 0 0 0 2.625.503h.18a7.125 7.125 0 0 0 2.93-13.536m-2.983 11.285a4.87 4.87 0 0 1-2.752-.77v-3.41l3.878-1.94a1.126 1.126 0 1 0-1.006-2.011l-2.872 1.435V8.25a1.125 1.125 0 1 0-2.25 0v4.18l-2.872-1.435a1.125 1.125 0 0 0-1.006 2.012l3.878 1.94v1.16a4.9 4.9 0 0 1-2.752.769c-2.58-.065-4.755-2.303-4.748-4.887a4.86 4.86 0 0 1 3.057-4.51 1.13 1.13 0 0 0 .636-.656 5.25 5.25 0 0 1 9.864 0 1.12 1.12 0 0 0 .636.656 4.86 4.86 0 0 1 3.057 4.508c.008 2.584-2.168 4.822-4.748 4.889"
}));
}
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: "M18.572 5.868a7.125 7.125 0 0 0-13.144 0A6.72 6.72 0 0 0 1.5 11.98c-.01 3.582 3 6.675 6.576 6.77 1.1.026 2.19-.217 3.174-.707v3.706a.75.75 0 1 0 1.5 0v-3.706a6.8 6.8 0 0 0 3 .706h.17c3.58-.094 6.59-3.187 6.58-6.769a6.72 6.72 0 0 0-3.928-6.113M15.886 17.25a5.26 5.26 0 0 1-3.136-.937v-3.844l4.086-2.042a.75.75 0 1 0-.672-1.343l-3.414 1.703V8.25a.75.75 0 1 0-1.5 0v4.787l-3.414-1.708a.75.75 0 0 0-.672 1.342l4.086 2.042v1.594a5.25 5.25 0 0 1-3.136.938c-2.78-.067-5.121-2.477-5.114-5.26a5.23 5.23 0 0 1 3.292-4.86.75.75 0 0 0 .424-.438 5.625 5.625 0 0 1 10.568 0 .75.75 0 0 0 .424.438A5.23 5.23 0 0 1 21 11.985c.008 2.783-2.334 5.193-5.114 5.265"
}));
};
IconTree.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 { IconTree as default };
IconTree;