import * as React from 'react'; import I18n from 'i18n-js'; import Button from '../common/Button'; import { SmallMutedText } from '../common/CustomTexts'; import { MarkdownIcon } from '../common/Icons'; import Dropzone from '../common/Dropzone'; import ITenantSetting from '../../interfaces/ITenantSetting'; interface Props { title: string; description: string; attachments: File[]; handleTitleChange(title: string): void; handleDescriptionChange(description: string): void; handleAttachmentsChange(attachments: File[]): void; handleSubmit(e: object): void; dnf1: string; dnf2: string; handleDnf1Change(dnf1: string): void; handleDnf2Change(dnf2: string): void; tenantSetting: ITenantSetting; currentUserFullName: string; isSubmissionAnonymous: boolean; } const NewPostForm = ({ title, description, attachments, handleTitleChange, handleDescriptionChange, handleAttachmentsChange, handleSubmit, dnf1, dnf2, handleDnf1Change, handleDnf2Change, tenantSetting, currentUserFullName, isSubmissionAnonymous, }: Props) => (