import React, { useState } from 'react'; import Modal from 'react-modal'; const RegistrationModal = ({ isOpen, onClose }) => { const [name, setName] = useState(''); const [surname, setSurname] = useState(''); const [phone, setPhone] = useState(''); const [password, setPassword] = useState(''); const [confirmPassword, setConfirmPassword] = useState(''); const [showPassword, setShowPassword] = useState(false); const handleRegistration = () => { // Здесь будет логика регистрации console.log('Регистрация:', name, surname, phone, password); onClose(); }; return (

Регистрация

setName(e.target.value)} style={{ width: '100%', padding: '8px', borderRadius: '5px', border: '1px solid #ddd', boxSizing: 'border-box', }} />
setSurname(e.target.value)} style={{ width: '100%', padding: '8px', borderRadius: '5px', border: '1px solid #ddd', boxSizing: 'border-box', }} />
setPhone(e.target.value)} style={{ width: '100%', padding: '8px', borderRadius: '5px', border: '1px solid #ddd', boxSizing: 'border-box', }} />
setPassword(e.target.value)} style={{ width: '100%', padding: '8px', borderRadius: '5px', border: '1px solid #ddd', boxSizing: 'border-box', }} />
setConfirmPassword(e.target.value)} style={{ width: '100%', padding: '8px', borderRadius: '5px', border: '1px solid #ddd', boxSizing: 'border-box', }} />
); }; export default RegistrationModal;