import React, { useState } from 'react'; import { TextField, Button, Typography, Stack, Box, IconButton, InputAdornment } from '@mui/material'; import { useTheme } from '@mui/material/styles'; import VisibilityOffOutlinedIcon from '@mui/icons-material/VisibilityOffOutlined'; import { VisibilityOutlined } from '@mui/icons-material'; import SidePanel from './SidePanel'; // استدعاء SidePanel من نفس المجلد أو حسب المسار المناسب import { useNavigate } from 'react-router-dom'; import { Link } from 'react-router-dom'; const LoginForm = () => { const navigate = useNavigate(); const theme = useTheme(); const [showPassword, setShowPassword] = useState(false); const handleTogglePassword = () => { setShowPassword((prev) => !prev); }; const handleLogin = () => { // بعد تنفيذ عملية تسجيل الدخول بنجاح، يتم التوجيه navigate('/dashboard'); }; return ( {/* SidePanel ثابت */} {/* Login Content */} {/* Logo */} logo Login Enter your username and password to access your account securely. Welcome back to our service! {/* Email Input */} Email {/* Password Input */} Password {showPassword ? : } ) }} /> {/* Login Button */} {/* Divider */} Or {/* Google Button */} {/* Facebook Button */} {/* Register Link */} Don’t have an account?{' '} Register {/* ForgetPassword Link */} Did you forget the password?{' '} Forget Password {/* Terms */} By logging in, I agree to the{' '} Terms of Service {' '} and{' '} Privacy Policy . ); }; export default LoginForm;