diff --git a/src/components/feed/PictureCard.tsx b/src/components/feed/PictureCard.tsx index fa935a5..efe41a7 100644 --- a/src/components/feed/PictureCard.tsx +++ b/src/components/feed/PictureCard.tsx @@ -12,6 +12,7 @@ import { useNavigate } from 'react-router-dom'; import { nip19 } from 'nostr-tools'; import { ReactionButton } from '@/components/ReactionButton'; import { ZapButton } from '@/components/ZapButton'; +import { useCurrentUser } from '@/hooks/useCurrentUser'; interface PictureCardProps { event: NostrEvent; @@ -61,6 +62,7 @@ export function PictureCard({ event }: PictureCardProps) { const metadata: NostrMetadata | undefined = author.data?.metadata; const [currentImageIndex, setCurrentImageIndex] = useState(0); const navigate = useNavigate(); + const { user } = useCurrentUser(); const displayName = metadata?.display_name || metadata?.name || genUserName(event.pubkey); const profileImage = metadata?.picture; @@ -193,11 +195,13 @@ export function PictureCard({ event }: PictureCardProps) { )} - {/* Interaction buttons - always at bottom */} -
- - -
+ {/* Interaction buttons - only show when logged in */} + {user && ( +
+ + +
+ )}