@massds/mayflower-react
Version:
React versions of Mayflower design system UI components
47 lines • 2.96 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 IconScreencast = 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: "M21.75 5.625v12.75a1.875 1.875 0 0 1-1.875 1.875h-3.75a1.125 1.125 0 1 1 0-2.25H19.5V6h-15v.375a1.125 1.125 0 0 1-2.25 0v-.75A1.875 1.875 0 0 1 4.125 3.75h15.75a1.875 1.875 0 0 1 1.875 1.875M3.375 16.5a1.125 1.125 0 1 0 0 2.25.375.375 0 0 1 .375.375 1.125 1.125 0 0 0 2.25 0A2.625 2.625 0 0 0 3.375 16.5m0-3.75a1.125 1.125 0 1 0 0 2.25A4.13 4.13 0 0 1 7.5 19.126a1.125 1.125 0 0 0 2.25 0 6.38 6.38 0 0 0-6.375-6.374m0-3.75a1.125 1.125 0 1 0 0 2.25 7.883 7.883 0 0 1 7.875 7.875 1.125 1.125 0 1 0 2.25 0A10.137 10.137 0 0 0 3.375 9"
}));
}
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.75 5.25v13.5a1.5 1.5 0 0 1-1.5 1.5H13.5a.75.75 0 1 1 0-1.5h6.75V5.25H3.75V9a.75.75 0 0 1-1.5 0V5.25a1.5 1.5 0 0 1 1.5-1.5h16.5a1.5 1.5 0 0 1 1.5 1.5M3 17.25a.75.75 0 1 0 0 1.5.75.75 0 0 1 .75.75.75.75 0 1 0 1.5 0A2.25 2.25 0 0 0 3 17.25m0-3a.75.75 0 1 0 0 1.5 3.75 3.75 0 0 1 3.75 3.75.75.75 0 1 0 1.5 0A5.256 5.256 0 0 0 3 14.25m0-3a.75.75 0 1 0 0 1.5 6.76 6.76 0 0 1 6.75 6.75.75.75 0 1 0 1.5 0A8.26 8.26 0 0 0 3 11.25"
}));
};
IconScreencast.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 { IconScreencast as default };
IconScreencast;