import { PinIcon } from "@lume/icons"; import { COL_TYPES, cn } from "@lume/utils"; import { useTranslation } from "react-i18next"; import { Link } from "react-router-dom"; import { Note } from "."; import { useArk } from "../../hooks/useArk"; import { useColumnContext } from "../column/provider"; import { useNoteContext } from "./provider"; export function NoteThread({ className, }: { className?: string; }) { const ark = useArk(); const event = useNoteContext(); const thread = ark.getEventThread({ content: event.content, tags: event.tags, }); const { t } = useTranslation(); const { addColumn } = useColumnContext(); if (!thread) return null; return (
{thread.rootEventId ? ( ) : null} {thread.replyEventId ? ( ) : null}
{t("note.showThread")}
); }