mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-01 06:53:11 +02:00
Tailwind, Prettier, ESLint, Typescript runner!
This commit is contained in:
11
src/components/Editor/Editor.tsx
Normal file
11
src/components/Editor/Editor.tsx
Normal file
@@ -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 rounded-lg bg-gray-800 overflow-hidden" />;
|
||||
}
|
||||
Reference in New Issue
Block a user