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