@making-sense/antlr-editor
Version:
ANTLR Typescript editor
17 lines • 832 B
JavaScript
;
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