import { TaggedNostrEvent } from "@snort/system"; import classNames from "classnames"; import Note from "@/Components/Event/EventComponent"; import { Divider } from "@/Components/Event/Thread/Divider"; import { SubthreadProps } from "@/Components/Event/Thread/Subthread"; import { getReplies } from "@/Components/Event/Thread/util"; export const TierThree = ({ active, isLastSubthread, notes, chains, onNavigate }: SubthreadProps) => { const [first, ...rest] = notes; const replies = getReplies(first.id, chains); const hasMultipleNotes = rest.length > 0 || replies.length > 0; const isLast = replies.length === 0 && rest.length === 0; return ( <>
{replies.length > 0 && ( )} {rest.map((r: TaggedNostrEvent, idx: number) => { const lastReply = idx === rest.length - 1; const lastNote = isLastSubthread && lastReply; return (
5} />
); })} ); };