import { Me, ThoughtThread as ThoughtThreadType } from "@/lib/api"; import { ThoughtCard } from "./thought-card"; interface ThoughtThreadProps { thought: ThoughtThreadType; authorDetails: Map; currentUser: Me | null; isReply?: boolean; } export function ThoughtThread({ thought, authorDetails, currentUser, isReply = false, }: ThoughtThreadProps) { const author = { username: thought.authorUsername, avatarUrl: null, ...authorDetails.get(thought.authorUsername), }; return (
{thought.replies.length > 0 && (
{thought.replies.map((reply) => ( ))}
)}
); }