UNPKG

@iobroker/adapter-react

Version:

React classes to develop admin interfaces for ioBroker with react.

49 lines (42 loc) 2.15 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _react = _interopRequireDefault(require("react")); var _propTypes = _interopRequireDefault(require("prop-types")); /** * @typedef {object} IconCopyProps * @property {string} [key] The key to identify this component. * @property {number} [width] The width in pixels of the icon. * @property {number} [height] The height in pixels of the icon. * @property {(e: React.MouseEvent) => void} [onClick] Click handler. * @property {string} [className] The class name for the SVG element. * * @extends {React.Component<IconCopyProps>} */ var IconCopy = function IconCopy(props) { return /*#__PURE__*/_react["default"].createElement("svg", { onClick: function onClick(e) { return props.onClick && props.onClick(e); }, viewBox: "0 0 512 512", width: props.width || 20, height: props.height || props.width || 20, xmlns: "http://www.w3.org/2000/svg", className: props.className }, /*#__PURE__*/_react["default"].createElement("path", { fill: "currentColor", d: "M433.941 65.941l-51.882-51.882A48 48 0 0 0 348.118 0H176c-26.51 0-48 21.49-48 48v48H48c-26.51 0-48 21.49-48 48v320c0 26.51 21.49 48 48 48h224c26.51 0 48-21.49 48-48v-48h80c26.51 0 48-21.49 48-48V99.882a48 48 0 0 0-14.059-33.941zM266 464H54a6 6 0 0 1-6-6V150a6 6 0 0 1 6-6h74v224c0 26.51 21.49 48 48 48h96v42a6 6 0 0 1-6 6zm128-96H182a6 6 0 0 1-6-6V54a6 6 0 0 1 6-6h106v88c0 13.255 10.745 24 24 24h88v202a6 6 0 0 1-6 6zm6-256h-64V48h9.632c1.591 0 3.117.632 4.243 1.757l48.368 48.368a6 6 0 0 1 1.757 4.243V112z" })); }; IconCopy.propTypes = { onClick: _propTypes["default"].func, width: _propTypes["default"].oneOfType([_propTypes["default"].number, _propTypes["default"].string]), height: _propTypes["default"].oneOfType([_propTypes["default"].number, _propTypes["default"].string]), className: _propTypes["default"].string }; var _default = IconCopy; exports["default"] = _default; //# sourceMappingURL=IconCopy.js.map