import { MutationHookOptions } from '@apollo/client' ; import { ReplyTopic as ReplyTopicType , ReplyTopicVariables , } from '../../generated/server/ReplyTopic' ; import { REPLY_TOPIC } from '../../graphql/server/topics' ; import { useMutation } from '../../utils' ; export function useReplyTopic ( options ? ) { const [ reply , { loading } ] = useMutation < ReplyTopicType , ReplyTopicVariables > ( REPLY_TOPIC , { ... options } ) ; return { reply , loading } ; }