mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-02-22 07:38:00 +01:00
14 lines
279 B
TypeScript
14 lines
279 B
TypeScript
import useCodeMirror from "./hooks/useCodemirror";
|
|
import "./Editor.css";
|
|
|
|
interface Props {
|
|
value: string;
|
|
}
|
|
|
|
export default function Editor(props: Props) {
|
|
const {ref} = useCodeMirror({value: props.value});
|
|
return (
|
|
<div ref={ref} id="editor-yo" />
|
|
)
|
|
}
|