UNPKG

react-code-view

Version:
28 lines (27 loc) 1.5 kB
"use strict"; var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); exports.__esModule = true; exports.svgTpl = exports.iconPath = exports["default"] = void 0; var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")); var _react = _interopRequireDefault(require("react")); var _jsxRuntime = require("react/jsx-runtime"); var iconPath = exports.iconPath = 'M320 448v40c0 13.255-10.745 24-24 24H24c-13.255 0-24-10.745-24-24V120c0-13.255 10.745-24 24-24h72v296c0 30.879 25.121 56 56 56h168zm0-344V0H152c-13.255 0-24 10.745-24 24v368c0 13.255 10.745 24 24 24h272c13.255 0 24-10.745 24-24V128H344c-13.2 0-24-10.8-24-24zm120.971-31.029L375.029 7.029A24 24 0 0 0 358.059 0H352v96h96v-6.059a24 24 0 0 0-7.029-16.97z'; var svgTpl = exports.svgTpl = function svgTpl(path) { return "<svg stroke=\"currentColor\" fill=\"currentColor\" stroke-width=\"0\" viewBox=\"0 0 448 512\" height=\"1em\" width=\"1em\" xmlns=\"http://www.w3.org/2000/svg\" class=\"copy-icon\"><path class=\"copy-icon-path\" d=\"" + path + "\"></path></svg>"; }; function CopyIcon(props) { return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", (0, _extends2["default"])({ width: "1em", height: "1em", viewBox: "0 0 448 512", fill: "currentColor", "aria-hidden": "true", focusable: "false", "aria-label": "copy" }, props, { children: /*#__PURE__*/(0, _jsxRuntime.jsx)("path", { d: iconPath }) })); } var _default = exports["default"] = CopyIcon;