feat: add ZapButton to comment component for enhanced interaction

This commit is contained in:
2025-10-19 23:18:32 +02:00
parent b1b5a1c072
commit 912e181ab4

View File

@@ -14,6 +14,7 @@ import { DropdownMenu, DropdownMenuTrigger } from '@/components/ui/dropdown-menu
import { MessageSquare, ChevronDown, ChevronRight, MoreHorizontal } from 'lucide-react';
import { formatDistanceToNow } from 'date-fns';
import { genUserName } from '@/lib/genUserName';
import { ZapButton } from '@/components/ZapButton';
interface CommentProps {
root: NostrEvent | URL;
@@ -83,6 +84,13 @@ export function Comment({ root, comment, depth = 0, maxDepth = 3, limit }: Comme
<MessageSquare className="h-3 w-3 mr-1" />
Reply
</Button>
{/* Zap Button */}
<ZapButton
target={comment as NostrEvent}
buttonVariant="ghost"
className="h-8 px-2 text-xs"
/>
{hasReplies && (
<Collapsible open={showReplies} onOpenChange={setShowReplies}>