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

{t('accessNofxPlatform', language)}

{t('loginRegisterPrompt', language)}

{ window.history.pushState({}, '', '/login') window.dispatchEvent(new PopStateEvent('popstate')) 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)} { window.history.pushState({}, '', '/register') window.dispatchEvent(new PopStateEvent('popstate')) onClose() }} className="block w-full px-6 py-3 rounded-lg font-semibold text-center" style={{ background: 'var(--brand-dark-gray)', color: 'var(--brand-light-gray)', border: '1px solid rgba(240, 185, 11, 0.2)', }} whileHover={{ scale: 1.05, borderColor: 'var(--brand-yellow)' }} whileTap={{ scale: 0.95 }} > {t('registerNewAccount', language)}
) }