import { Button } from '@/components/ui/button' import { useNostr } from '@/providers/NostrProvider' import { usePinList } from '@/providers/PinListProvider' import { Loader, Pin } from 'lucide-react' import { NostrEvent } from 'nostr-tools' import { useState } from 'react' import { useTranslation } from 'react-i18next' export default function PinnedButton({ event }: { event: NostrEvent }) { const { t } = useTranslation() const { pubkey } = useNostr() const { unpin } = usePinList() const [hovered, setHovered] = useState(false) const [unpinning, setUnpinning] = useState(false) if (event.pubkey !== pubkey) { return (