UNPKG

rich-text-editor

Version:
8 lines (7 loc) 1.56 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = LatexErrorIcon; const jsx_runtime_1 = require("react/jsx-runtime"); function LatexErrorIcon({ title, latex, onClick }) { return ((0, jsx_runtime_1.jsx)("span", { onClick: onClick, className: "latex-error", "data-latex": latex, children: (0, jsx_runtime_1.jsxs)("svg", { width: "305px", height: "20px", viewBox: "0 0 305 20", version: "1.1", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", children: [(0, jsx_runtime_1.jsx)("title", { children: title }), (0, jsx_runtime_1.jsx)("defs", {}), (0, jsx_runtime_1.jsx)("g", { stroke: "none", strokeWidth: "1", fill: "none", fillRule: "evenodd", children: (0, jsx_runtime_1.jsx)("g", { transform: "translate(-241.000000, -219.000000)", children: (0, jsx_runtime_1.jsxs)("g", { transform: "translate(209.000000, 207.000000)", children: [(0, jsx_runtime_1.jsx)("rect", { x: "-1.58632797e-14", y: "0", width: "80", height: "40" }), (0, jsx_runtime_1.jsxs)("g", { transform: "translate(32.000000, 12.000000)", children: [(0, jsx_runtime_1.jsx)("polygon", { id: "Combined-Shape", fill: "#9B0000", fillRule: "nonzero", points: "0 18 8.04006 2 16.08012 18" }), (0, jsx_runtime_1.jsx)("polygon", { id: "Combined-Shape-path", fill: "#FFFFFF", points: "7 14 9 14 9 16 7 16" }), (0, jsx_runtime_1.jsx)("polygon", { id: "Combined-Shape-path", fill: "#FFFFFF", points: "7 7 9 7 9 12 7 12" })] })] }) }) }), (0, jsx_runtime_1.jsx)("text", { x: "25", y: "16", fill: "red", children: title })] }) })); }