'use client'; import { useState } from 'react'; import { SettingsSidebar } from '../component/SettingsSidebar'; export default function PasswordSecurityPage() { const [formData, setFormData] = useState({ currentPassword: '', newPassword: '', confirmPassword: '', }); const [showPasswords, setShowPasswords] = useState({ current: false, new: false, confirm: false, }); const handleChange = (field: string, value: string) => { setFormData((prev) => ({ ...prev, [field]: value })); }; const toggleShowPassword = (field: 'current' | 'new' | 'confirm') => { setShowPasswords((prev) => ({ ...prev, [field]: !prev[field] })); }; const handleSave = () => { if (formData.newPassword !== formData.confirmPassword) { alert('Passwords do not match'); return; } console.log('Updating password'); }; return (
{/* Left Sidebar */} {/* Main Content */}
{/* Header Card */}

Password Security

{/* Password Form */}

Change Password

Ensure your account is using a strong password to stay secure

{/* Form Fields */}
{/* Current Password */}
handleChange('currentPassword', e.target.value)} placeholder="Enter current password" className="w-full h-[40px] px-4 pr-12 border border-[#00293D]/20 rounded-[15px] text-[14px] font-serif text-[#00293D] placeholder:text-[#00293D]/40 focus:outline-none focus:border-[#E58625]" />
{/* New Password */}
handleChange('newPassword', e.target.value)} placeholder="Enter new password" className="w-full h-[40px] px-4 pr-12 border border-[#00293D]/20 rounded-[15px] text-[14px] font-serif text-[#00293D] placeholder:text-[#00293D]/40 focus:outline-none focus:border-[#E58625]" />

Minimum 8 characters with at least one uppercase, lowercase, and number

{/* Confirm Password */}
handleChange('confirmPassword', e.target.value)} placeholder="Confirm new password" className="w-full h-[40px] px-4 pr-12 border border-[#00293D]/20 rounded-[15px] text-[14px] font-serif text-[#00293D] placeholder:text-[#00293D]/40 focus:outline-none focus:border-[#E58625]" />
{/* Save Button */}
{/* Two-Factor Authentication Section */}

Two-Factor Authentication

Add an extra layer of security to your account

); }