import { FormikEditorProps, attachment } from "@bigbinary/neeto-editor";
import { TextareaProps } from "@bigbinary/neeto-atoms";

const DocumentEditor: React.FC<{
  attachments?: attachment[];
  onContentChange?: (content: string) => void;
  onAttachmentChange?: (attachments: attachment[]) => void;
  onTitleChange?: (title: string) => void;
  getTitleRef?: (ref: HTMLTextAreaElement | null) => void;
  getEditorRef?: (ref: any) => void;
  editorContentFieldName?: string;
  titleFieldName?: string;
  editorProps?: FormikEditorProps;
  titleProps?: TextareaProps;
  menuClassName?: string;
  children?: React.ReactNode;
  hasThumbnailImage?: boolean;
}>;

export default DocumentEditor;
