'use client' import { toast } from '@/hooks/use-toast' import { Button } from '../../../components/ui/button' import { Heart, Coins, Check, Copy, Star, CreditCard } from 'lucide-react' import { useState } from 'react' import { Dialog, DialogContent, DialogHeader, DialogTitle, } from '../../../components/ui/dialog' import Link from 'next/link' import { ExternalLinks } from '@/config/external-links' export default function SupportProjectSection() { const [cryptoOpen, setCryptoOpen] = useState(false) const [copiedAddress, setCopiedAddress] = useState('') const cryptoWallets = [ { name: 'Bitcoin (BTC)', address: 'bc1qhffsnhp8ynqy6xvh982cu0x5w7vguuum3nqae9', network: 'Bitcoin', }, { name: 'Ethereum (ETH)', address: '0xDB8560a42bdaa42C58462C6b2ee5A7D36F1c1f2a', network: 'Ethereum (ERC20)', }, { name: 'Tether (USDT)', address: '0xDB8560a42bdaa42C58462C6b2ee5A7D36F1c1f2a', network: 'Ethereum (ERC20)', }, // { // name: 'Tether (USDT)', // address: 'TD6txzY61D6EgnVfMLPsqKhYfyV5iHrbkw', // network: 'Tron (TRC20)', // }, { name: 'Monero (XMR)', address: '856J5eHJM7bgBhkc51oCuMYUGKvUvF1zwAWrQsqwuH1shG9qnX4YkoZbMmhCPep1JragY2W1hpzAnDda6BXvCgZxUJhUyTg', network: 'Monero (XMR)', }, ] const copyToClipboard = (address: string) => { navigator.clipboard.writeText(address) setCopiedAddress(address) toast({ title: 'Address copied!', description: 'The wallet address has been copied to your clipboard.', }) setTimeout(() => setCopiedAddress(''), 3000) } return ( <> Support The Project Maintaining an open-source project requires time and dedication. Your contribution will directly support the development, including implementation of new features, enhance performance, and ensure the highest level of security and reliability. Become a Patron Star on GitHub One-time Donation setCryptoOpen(true)} className='sm:w-auto w-full' > Donate Crypto Donate Cryptocurrency {cryptoWallets.map((wallet, index) => ( {wallet.name} {wallet.network} {wallet.address} copyToClipboard(wallet.address)} > {copiedAddress === wallet.address ? ( ) : ( )} ))} > ) }
Maintaining an open-source project requires time and dedication. Your contribution will directly support the development, including implementation of new features, enhance performance, and ensure the highest level of security and reliability.
{wallet.network}
{wallet.address}