import { X, ExternalLink, Info } from 'lucide-react'; import { cn } from '@/lib/utils'; import { useTranslation } from '@/i18n'; interface P2PModalProps { isOpen: boolean; onClose: () => void; onOpenP2P: () => void; } export function P2PModal({ isOpen, onClose, onOpenP2P }: P2PModalProps) { const { t, isRTL } = useTranslation(); if (!isOpen) return null; const handleOpenP2P = () => { onOpenP2P(); onClose(); }; // Access steps array directly - t() only works for string values // We need to get the steps from the translation as individual indexed items const steps: string[] = []; for (let i = 0; i < 4; i++) { const step = t(`p2p.steps.${i}`); if (step !== `p2p.steps.${i}`) steps.push(step); } return (
{/* Header */}

{t('p2p.title')}

{/* Content */}

{t('p2p.subtitle')}

{/* First Time Info */}

{t('p2p.firstTime')}

    {steps.map((step, i) => (
  1. {i + 1}. {step}
  2. ))}
{/* Note */}

{t('p2p.note')}

{/* Action Button */}
); }