import { motion } from 'framer-motion' import { X } from 'lucide-react' import { useNavigate } from 'react-router-dom' import { t, Language } from '../../i18n/translations' interface LoginModalProps { onClose: () => void language: Language } export default function LoginModal({ onClose, language }: LoginModalProps) { const navigate = useNavigate() return ( e.stopPropagation()} >

{t('accessNofxPlatform', language)}

{t('loginRegisterPrompt', language)}

{ navigate('/login') onClose() }} className="block w-full px-6 py-3 rounded-lg font-semibold text-center" style={{ background: 'var(--brand-yellow)', color: 'var(--brand-black)', }} whileHover={{ scale: 1.05, boxShadow: '0 10px 30px rgba(240, 185, 11, 0.4)', }} whileTap={{ scale: 0.95 }} > {t('signIn', language)}
) }