react-newsfeed
Version:
A customizable social media post component for React applications that mimics popular social media feeds with features like likes, comments, and image galleries.
12 lines (11 loc) • 572 B
TypeScript
import { Comment } from "../../types";
interface CommentListProps {
comments: Comment[];
onLikeComment: (commentId: string) => void;
onLikeReply: (commentId: string, replyId: string) => void;
onToggleReplies: (commentId: string) => void;
onToggleReplyInput: (commentId: string) => void;
onPostReply: (commentId: string, content: string) => void;
}
export default function CommentList({ comments, onLikeComment, onLikeReply, onToggleReplies, onToggleReplyInput, onPostReply, }: CommentListProps): import("react/jsx-runtime").JSX.Element;
export {};