UNPKG

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.

14 lines (13 loc) 719 B
import { Comment } from "../../types"; interface CommentListProps { comments: Comment[]; onLikeComment: (commentId: string) => void; onDeleteComment: (commentId: string) => void; onLikeReply: (commentId: string, replyId: string) => void; onDeleteReply: (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, onDeleteComment, onLikeReply, onDeleteReply, onToggleReplies, onToggleReplyInput, onPostReply, }: CommentListProps): import("react/jsx-runtime").JSX.Element; export {};