@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
47 lines • 3.07 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 IconPresentationChart = 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 3.75h-7.125V2.625a1.125 1.125 0 1 0-2.25 0V3.75H3.75a1.875 1.875 0 0 0-1.875 1.875v11.25A1.875 1.875 0 0 0 3.75 18.75h2.906L5.12 20.672a1.125 1.125 0 0 0 1.757 1.406l2.662-3.328h4.918l2.663 3.328a1.124 1.124 0 1 0 1.757-1.406l-1.532-1.922h2.906a1.875 1.875 0 0 0 1.875-1.875V5.625A1.875 1.875 0 0 0 20.25 3.75m-.375 12.75H4.125V6h15.75zM9.75 11.625v2.25a1.125 1.125 0 0 1-2.25 0v-2.25a1.125 1.125 0 0 1 2.25 0M12 9a1.125 1.125 0 0 1 1.125 1.125v3.75a1.125 1.125 0 1 1-2.25 0v-3.75A1.125 1.125 0 0 1 12 9m2.25 4.875v-5.25a1.125 1.125 0 1 1 2.25 0v5.25a1.125 1.125 0 1 1-2.25 0"
}));
}
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 4.125h-7.5v-1.5a.75.75 0 0 0-1.5 0v1.5h-7.5a1.5 1.5 0 0 0-1.5 1.5v11.25a1.5 1.5 0 0 0 1.5 1.5h3.69l-2.026 2.531a.75.75 0 1 0 1.172.938l2.774-3.469h5.28l2.774 3.469a.751.751 0 0 0 1.172-.938l-2.026-2.531h3.69a1.5 1.5 0 0 0 1.5-1.5V5.625a1.5 1.5 0 0 0-1.5-1.5m0 12.75H3.75V5.625h16.5zm-10.5-5.25v2.25a.75.75 0 1 1-1.5 0v-2.25a.75.75 0 1 1 1.5 0m3-1.5v3.75a.75.75 0 0 1-1.5 0v-3.75a.75.75 0 1 1 1.5 0m3-1.5v5.25a.75.75 0 0 1-1.5 0v-5.25a.75.75 0 1 1 1.5 0"
}));
};
IconPresentationChart.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 { IconPresentationChart as default };
IconPresentationChart;