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.

17 lines (16 loc) 867 B
import { Comment } from "../../types"; interface PostCommentsProps { comments: Comment[]; newComment: string; onCommentChange: (value: string) => void; onPostComment: () => void; 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 PostComments({ comments, newComment, onCommentChange, onPostComment, onLikeComment, onDeleteComment, onLikeReply, onDeleteReply, onToggleReplies, onToggleReplyInput, onPostReply, }: PostCommentsProps): import("react/jsx-runtime").JSX.Element; export {};