import { preventDefault, useEditor } from '@tldraw/editor' import React from 'react' import { TextAreaProps } from './RichTextArea' /** * A plain text area that can be used for basic editing text. * * @public @react */ export const PlainTextArea = React.forwardRef(function TextArea( { isEditing, text, handleFocus, handleChange, handleKeyDown, handlePaste, handleBlur, handleInputPointerDown, handleDoubleClick, }, ref ) { const editor = useEditor() const onChange = (e: React.ChangeEvent) => { handleChange({ plaintext: e.target.value }) } return (