import { watch } from 'indent-textarea'; import { SyntheticEvent, useEffect, useRef } from 'react'; import { classList } from '../utilities/cssClasses'; interface Props { className?: string; value: string; onChange: (content: string) => void; } export const DumbEditor = ({ className, onChange, value }: Props) => { const ref = useRef(); const handleOnChange = (event: SyntheticEvent) => { onChange(event.currentTarget.value); }; useEffect(() => watch(ref.current), [ref]); return (