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