@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
47 lines • 2.98 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 IconFileImage = 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: "M11.812 13.626a1.125 1.125 0 0 0-1.875 0l-1.406 2.108-.628-.946a1.124 1.124 0 0 0-1.882.016L2.43 20.392a1.126 1.126 0 0 0 .946 1.733h12a1.126 1.126 0 0 0 .937-1.749zm-6.375 6.25 1.547-2.41.614.92a1.125 1.125 0 0 0 1.875 0l1.406-2.108 2.394 3.598zM21.421 7.454l-5.25-5.25a1.12 1.12 0 0 0-.796-.33h-9A1.875 1.875 0 0 0 4.5 3.75v7.876a1.125 1.125 0 1 0 2.25 0v-7.5h7.125v4.5A1.125 1.125 0 0 0 15 9.75h4.5v10.125a1.125 1.125 0 1 0 0 2.25h.375a1.875 1.875 0 0 0 1.875-1.875v-12a1.13 1.13 0 0 0-.33-.795m-5.296-2.11L18.28 7.5h-2.156z"
}));
}
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: "M11.5 13.834a.75.75 0 0 0-1.25 0l-1.954 2.934-.915-1.423a.75.75 0 0 0-1.262 0l-3.375 5.25a.75.75 0 0 0 .631 1.156h12A.75.75 0 0 0 16 20.583zM4.748 20.25l2.001-3.113.903 1.406a.75.75 0 0 0 1.255.01l1.969-2.95 3.097 4.647zM21.155 7.72l-5.25-5.25a.75.75 0 0 0-.53-.22h-9a1.5 1.5 0 0 0-1.5 1.5V12a.75.75 0 1 0 1.5 0V3.75h8.25v4.5a.75.75 0 0 0 .75.75h4.5v11.25h-.75a.75.75 0 1 0 0 1.5h.75a1.5 1.5 0 0 0 1.5-1.5v-12a.75.75 0 0 0-.22-.53m-5.03-2.91 2.69 2.69h-2.69z"
}));
};
IconFileImage.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 { IconFileImage as default };
IconFileImage;