UNPKG

@making-sense/antlr-editor

Version:
17 lines 832 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const jsx_runtime_1 = require("react/jsx-runtime"); const EditorFooter = ({ cursor, FooterComponent }) => { if (FooterComponent) { return (0, jsx_runtime_1.jsx)(FooterComponent, { cursor: cursor }); } return ((0, jsx_runtime_1.jsx)("div", { style: { display: "flex", justifyContent: "flex-end", fontSize: "12px", fontFamily: "monospace", width: "100%" }, children: (0, jsx_runtime_1.jsxs)("span", { children: ["Line ", cursor.line, " - Column ", cursor.column, cursor.selectionLength > 0 && (0, jsx_runtime_1.jsxs)("span", { children: [" (", cursor.selectionLength, " selected)"] })] }) })); }; exports.default = EditorFooter; //# sourceMappingURL=EditorFooter.js.map