import "./Thread.css"; import { useMemo, useState, ReactNode, useContext } from "react"; import { useIntl } from "react-intl"; import { useNavigate, useParams } from "react-router-dom"; import { TaggedNostrEvent, u256, NostrPrefix, EventExt, parseNostrLink, NostrLink } from "@snort/system"; import classNames from "classnames"; import { getAllLinkReactions, getLinkReactions } from "@/SnortUtils"; import BackButton from "@/Element/Button/BackButton"; import Note from "@/Element/Event/Note"; import NoteGhost from "@/Element/Event/NoteGhost"; import Collapsed from "@/Element/Collapsed"; import { ThreadContext, ThreadContextWrapper, chainKey } from "@/Hooks/useThreadContext"; import messages from "../messages"; interface DividerProps { variant?: "regular" | "small"; } const Divider = ({ variant = "regular" }: DividerProps) => { const className = variant === "small" ? "divider divider-small" : "divider"; return (
{JSON.stringify( Object.fromEntries([...thread.chains.entries()].map(([k, v]) => [k, v.map(c => c.id)])), undefined, " ", )}
{JSON.stringify(thread.current)}
{JSON.stringify(thread.root, undefined, " ")}
{JSON.stringify(thread.data, undefined, " ")}
{JSON.stringify(thread.reactions, undefined, " ")}