/** * Query Editor Component * * Syntax-highlighted SPARQL query editor using CodeMirror. */ import { type FC } from 'react'; import CodeMirror from '@uiw/react-codemirror'; import { javascript } from '@codemirror/lang-javascript'; import './QueryEditor.css'; interface QueryEditorProps { value: string; onChange: (value: string) => void; readOnly?: boolean; height?: string; } export const QueryEditor: FC = ({ value, onChange, readOnly = false, height = '400px', }) => { return (
); };