// @flow import * as React from 'react'; import classNames from 'classnames'; import CommentForm from '../comment-form'; import type { SelectorItems, User } from '../../../../common/types/core'; import './AnnotationThreadCreate.scss'; type Props = { currentUser: User, getAvatarUrl: string => Promise, getMentionWithQuery: (searchStr: string) => void, isPending: boolean, mentionSelectorContacts: SelectorItems<>, onFormCancel: () => void, onFormSubmit: (text: string) => void, }; const AnnotationThreadCreate = ({ currentUser, getAvatarUrl, getMentionWithQuery, isPending, mentionSelectorContacts, onFormCancel, onFormSubmit, }: Props) => { const handleSubmit = ({ text }) => { onFormSubmit(text); }; return (