import * as React from 'react'; import Gravatar from 'react-gravatar'; import Button from '../shared/Button'; import Spinner from '../shared/Spinner'; import { DangerText } from '../shared/CustomTexts'; interface Props { body: string; parentId: number; isSubmitting: boolean; error: string; handleChange(e: React.FormEvent): void; handleSubmit(body: string, parentId: number): void; isLoggedIn: boolean; userEmail: string; } const NewComment = ({ body, parentId, isSubmitting, error, handleChange, handleSubmit, isLoggedIn, userEmail, }: Props) => (
{ isLoggedIn ?