// EmailInputSection.js import React, { useState } from 'react'; import { Box, Button, TextField, Typography } from '@mui/material'; import { useTheme } from '@mui/material/styles'; import { IconButton, InputAdornment } from '@mui/material'; import VisibilityOffOutlinedIcon from '@mui/icons-material/VisibilityOffOutlined'; import { VisibilityOutlined } from '@mui/icons-material'; const EmailInputSection = ({ emailOrPhone, setEmailOrPhone }) => { const theme = useTheme(); const handleTogglePassword = () => { setShowPassword((prev) => !prev); }; const [showPassword, setShowPassword] = useState(false); const [showConfirmPassword, setShowConfirmPassword] = useState(false); const [currentSlide, setCurrentSlide] = useState(0); const slides = [0, 1, 2, 3]; const handleSend = () => { // عملية الإرسال }; const handleToggleConfirmPassword = () => { setShowConfirmPassword((prev) => !prev); }; const handleNext = () => { if (currentSlide < slides.length - 1) { setCurrentSlide(prev => prev + 1); } }; const handleBack = () => { if (currentSlide > 0) { setCurrentSlide(prev => prev - 1); } }; return ( <> Create a New Password Enter your email to reset it and regai access to your account. {/* Password Input */} Password {showPassword ? : } ) }} /> {/* Confirm Password Input */} Confirm Password {showConfirmPassword ? : } ) }} /> {/* send */} By log in, I agree to the  Terms of Service and  Privacy Policy ); }; export default EmailInputSection;