UNPKG

@massds/mayflower-react

Version:

React versions of Mayflower design system UI components

47 lines 3.01 kB
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 IconCamera = 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: "M19.5 5.25h-2.398l-1.165-1.749a1.13 1.13 0 0 0-.937-.5H9a1.13 1.13 0 0 0-.938.5l-1.165 1.75H4.5a2.625 2.625 0 0 0-2.625 2.624v10.5A2.625 2.625 0 0 0 4.5 21h15a2.625 2.625 0 0 0 2.625-2.625v-10.5A2.625 2.625 0 0 0 19.5 5.25m.375 13.125a.375.375 0 0 1-.375.375h-15a.375.375 0 0 1-.375-.375v-10.5A.375.375 0 0 1 4.5 7.5h3a1.13 1.13 0 0 0 .937-.5l1.165-1.75h4.795L15.562 7a1.13 1.13 0 0 0 .938.5h3a.375.375 0 0 1 .375.375zM12 8.25a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9M12 15a2.25 2.25 0 1 1 0-4.5 2.25 2.25 0 0 1 0 4.5" })); } 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: "M19.5 5.625h-2.6L15.623 3.71A.75.75 0 0 0 15 3.375H9a.75.75 0 0 0-.624.334L7.098 5.625H4.5a2.25 2.25 0 0 0-2.25 2.25v10.5a2.25 2.25 0 0 0 2.25 2.25h15a2.25 2.25 0 0 0 2.25-2.25v-10.5a2.25 2.25 0 0 0-2.25-2.25m.75 12.75a.75.75 0 0 1-.75.75h-15a.75.75 0 0 1-.75-.75v-10.5a.75.75 0 0 1 .75-.75h3a.75.75 0 0 0 .624-.333l1.277-1.917h5.197l1.277 1.917a.75.75 0 0 0 .625.333h3a.75.75 0 0 1 .75.75zM12 8.625a4.125 4.125 0 1 0 0 8.25 4.125 4.125 0 0 0 0-8.25m0 6.75a2.625 2.625 0 1 1 0-5.25 2.625 2.625 0 0 1 0 5.25" })); }; IconCamera.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 { IconCamera as default }; IconCamera;