@mantine/code-highlight
Version:
Code highlight with Mantine theme
33 lines (32 loc) • 1.39 kB
JavaScript
"use client";
let react_jsx_runtime = require("react/jsx-runtime");
//#region packages/@mantine/code-highlight/src/CodeHighlight/CopyCodeButton/CopyIcon.tsx
function CopyIcon({ copied, ...others }) {
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
xmlns: "http://www.w3.org/2000/svg",
viewBox: "0 0 24 24",
strokeWidth: "2",
stroke: "currentColor",
fill: "none",
strokeLinecap: "round",
strokeLinejoin: "round",
...others,
children: copied ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
stroke: "none",
d: "M0 0h24v24H0z",
fill: "none"
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M5 12l5 5l10 -10" })] }) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
stroke: "none",
d: "M0 0h24v24H0z",
fill: "none"
}),
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M8 8m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z" }),
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M16 8v-2a2 2 0 0 0 -2 -2h-8a2 2 0 0 0 -2 2v8a2 2 0 0 0 2 2h2" })
] })
});
}
CopyIcon.displayName = "@mantine/code-highlight/CopyIcon";
//#endregion
exports.CopyIcon = CopyIcon;
//# sourceMappingURL=CopyIcon.cjs.map