import { useState } from "react"; import { observer } from "mobx-react"; // editor import { EditorRefApi } from "@plane/document-editor"; // ui import { TextArea } from "@plane/ui"; // helpers import { cn } from "@/helpers/common.helper"; type Props = { editorRef: React.RefObject; readOnly: boolean; title: string; updateTitle: (title: string) => void; }; export const PageEditorTitle: React.FC = observer((props) => { const { editorRef, readOnly, title, updateTitle } = props; // states const [isLengthVisible, setIsLengthVisible] = useState(false); return ( <> {readOnly ? (
{title}
) : ( <>