import type { Comment } from '@entities' import type { HttpClient } from '@services' import type { ApiError, Response } from '@types' export type AddCommentInput = { contractId: string commentId: string formData: FormData } const modifyComment = (http: HttpClient) => ({ query: ( input: AddCommentInput, ): Promise> => { return http.put( `v3/admin/contracts/${input.contractId}/comments/${input.commentId}`, input.formData, { headers: { 'Content-Type': 'multipart/form-data' } }, ) }, }) export default modifyComment