import { useFilteredAllReplies } from '@/hooks' import { useStuff } from '@/hooks/useStuff' import { cn } from '@/lib/utils' import { useNostr } from '@/providers/NostrProvider' import { MessageCircle } from 'lucide-react' import { Event } from 'nostr-tools' import { useState } from 'react' import { useTranslation } from 'react-i18next' import PostEditor from '../PostEditor' import { formatCount } from './utils' export default function ReplyButton({ stuff }: { stuff: Event | string }) { const { t } = useTranslation() const { checkLogin } = useNostr() const { stuffKey } = useStuff(stuff) const { replies, hasReplied } = useFilteredAllReplies(stuffKey) const [open, setOpen] = useState(false) return ( <> ) }