import * as React from 'react'; import I18n from 'i18n-js'; import Button from '../shared/Button'; interface Props { title: string; description: string; handleTitleChange(title: string): void; handleDescriptionChange(description: string): void; handleSubmit(e: object): void; } const NewPostForm = ({ title, description, handleTitleChange, handleDescriptionChange, handleSubmit, }: Props) => (
handleTitleChange(e.target.value)} id="postTitle" className="form-control" autoFocus />
); export default NewPostForm;