@mantine/code-highlight
Version:
Code highlight with Mantine theme
43 lines (42 loc) • 1.86 kB
JavaScript
"use client";
let react_jsx_runtime = require("react/jsx-runtime");
//#region packages/@mantine/code-highlight/src/CodeHighlight/ExpandCodeButton/ExpandIcon.tsx
function ExpandIcon({ expanded, style, ...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: expanded ? /* @__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: "M12 13v-8l-3 3m6 0l-3 -3" }),
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M9 17l1 0" }),
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M14 17l1 0" }),
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M19 17l1 0" }),
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M4 17l1 0" })
] }) : /* @__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: "M12 11v8l3 -3m-6 0l3 3" }),
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M9 7l1 0" }),
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M14 7l1 0" }),
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M19 7l1 0" }),
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M4 7l1 0" })
] })
});
}
ExpandIcon.displayName = "@mantine/code-highlight/ExpandIcon";
//#endregion
exports.ExpandIcon = ExpandIcon;
//# sourceMappingURL=ExpandIcon.cjs.map