import { FC } from "react"; // components import { IssueActivityCard } from "./card"; import { IssueCommentEditor } from "./comment-editor"; interface IIssueComment { workspaceSlug: string; projectId: string; issueId: string; user: any; issueComments: any; issueCommentCreate: (comment: any) => void; issueCommentUpdate: (comment: any) => void; issueCommentRemove: (commentId: string) => void; issueCommentReactionCreate: (commentId: string, reaction: string) => void; issueCommentReactionRemove: (commentId: string, reaction: string) => void; } export const IssueComment: FC = (props) => { const { workspaceSlug, projectId, issueId, user, issueComments, issueCommentCreate, issueCommentUpdate, issueCommentRemove, issueCommentReactionCreate, issueCommentReactionRemove, } = props; const handleAddComment = async (formData: any) => { if (!formData.comment_html) return; await issueCommentCreate(formData); }; return (
Activity
); };