@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
47 lines • 2.93 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 IconStack = 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: "M22.471 15.938a1.125 1.125 0 0 1-.409 1.534l-9 5.25a1.13 1.13 0 0 1-1.134 0l-9-5.25a1.125 1.125 0 0 1 1.134-1.944l8.437 4.92 8.439-4.92a1.125 1.125 0 0 1 1.533.41m-1.533-4.91-8.438 4.92-8.433-4.92a1.125 1.125 0 0 0-1.13 1.944l9 5.25a1.13 1.13 0 0 0 1.135 0l9-5.25a1.126 1.126 0 1 0-1.134-1.944M2.375 7.5a1.13 1.13 0 0 1 .562-.972l9-5.25a1.13 1.13 0 0 1 1.135 0l9 5.25a1.125 1.125 0 0 1 0 1.944l-9 5.25a1.12 1.12 0 0 1-1.134 0l-9-5.25a1.13 1.13 0 0 1-.563-.972m3.358 0 6.767 3.948L19.267 7.5 12.5 3.552z"
}));
}
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.648 16.125a.75.75 0 0 1-.273 1.023l-9 5.25a.75.75 0 0 1-.756 0l-9-5.25a.75.75 0 0 1 .756-1.296L12 20.882l8.625-5.03a.75.75 0 0 1 1.023.273m-1.023-4.773L12 16.382l-8.625-5.03a.75.75 0 0 0-.75 1.296l9 5.25a.75.75 0 0 0 .756 0l9-5.25a.749.749 0 1 0-.756-1.296M2.25 7.5a.75.75 0 0 1 .375-.648l9-5.25a.75.75 0 0 1 .756 0l9 5.25a.75.75 0 0 1 0 1.296l-9 5.25a.75.75 0 0 1-.756 0l-9-5.25A.75.75 0 0 1 2.25 7.5m2.239 0L12 11.882 19.511 7.5 12 3.118z"
}));
};
IconStack.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 { IconStack as default };
IconStack;