mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-05-29 19:00:49 +02:00
Better dir structure
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
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} className="m-0 text-sm overflow-hidden" />;
|
||||
}
|
||||
Reference in New Issue
Block a user