@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
47 lines • 3.06 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 IconRestore = 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: "M8.75 10.125h-4.5A1.125 1.125 0 0 1 3.125 9V4.5a1.125 1.125 0 0 1 2.25 0v1.781l.731-.731a9.32 9.32 0 0 1 6.582-2.743h.052a9.32 9.32 0 0 1 6.55 2.669 1.126 1.126 0 0 1-1.205 1.848 1.1 1.1 0 0 1-.368-.24 7.125 7.125 0 0 0-10.016.06l-.732.731H8.75a1.125 1.125 0 1 1 0 2.25m12 3.75h-4.5a1.125 1.125 0 0 0 0 2.25h1.781l-.731.731a7.08 7.08 0 0 1-4.999 2.087h-.04a7.08 7.08 0 0 1-4.977-2.028 1.125 1.125 0 1 0-1.573 1.61 9.32 9.32 0 0 0 6.55 2.668h.052a9.32 9.32 0 0 0 6.577-2.746l.735-.728V19.5a1.125 1.125 0 1 0 2.25 0V15a1.125 1.125 0 0 0-1.125-1.125"
}));
}
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: "M8.25 9.75h-4.5A.75.75 0 0 1 3 9V4.5a.75.75 0 0 1 1.5 0v2.69l1.372-1.372a8.95 8.95 0 0 1 6.316-2.636h.05a8.94 8.94 0 0 1 6.287 2.562.75.75 0 0 1-1.048 1.073 7.46 7.46 0 0 0-5.24-2.135h-.042a7.46 7.46 0 0 0-5.263 2.196L5.56 8.25h2.69a.75.75 0 0 1 0 1.5m12 4.5h-4.5a.75.75 0 0 0 0 1.5h2.69l-1.372 1.372a7.46 7.46 0 0 1-5.262 2.196h-.042a7.46 7.46 0 0 1-5.24-2.135.748.748 0 0 0-1.234.25.75.75 0 0 0 .186.823 8.94 8.94 0 0 0 6.288 2.562h.049a8.95 8.95 0 0 0 6.315-2.636L19.5 16.81v2.69a.75.75 0 1 0 1.5 0V15a.75.75 0 0 0-.75-.75"
}));
};
IconRestore.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 { IconRestore as default };
IconRestore;