Files
yaak-mountain-loop/src-web/components/Editor/Editor.tsx
2023-02-24 16:43:47 -08:00

15 lines
344 B
TypeScript

import useCodeMirror from '../../hooks/useCodemirror';
import './Editor.css';
interface Props {
contentType: string;
initialValue?: string;
value?: string;
onChange?: (value: string) => void;
}
export default function Editor(props: Props) {
const { ref } = useCodeMirror(props);
return <div ref={ref} className="cm-wrapper" />;
}