mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-02-23 02:54:58 +01:00
13 lines
346 B
TypeScript
13 lines
346 B
TypeScript
import useCodeMirror from '../../hooks/useCodemirror';
|
|
import './Editor.css';
|
|
|
|
interface Props {
|
|
contentType: string;
|
|
value: string;
|
|
}
|
|
|
|
export default function Editor(props: Props) {
|
|
const { ref } = useCodeMirror({ value: props.value, contentType: props.contentType });
|
|
return <div ref={ref} className="m-0 text-sm overflow-hidden" />;
|
|
}
|