'use client'; import { Box, Typography, Card, CardContent, TextField, Button, Divider, Switch, FormControlLabel } from '@mui/material'; import { Save, Logout } from '@mui/icons-material'; import { useAuth } from '@/lib/auth/AuthContext'; import { useState } from 'react'; import { AppShell } from '@/components/layouts/AppShell/AppShell'; import { ProtectedRoute } from '@/components/common/ProtectedRoute'; export default function SettingsPage() { const { user, logout } = useAuth(); const [settings, setSettings] = useState({ notifications: true, emailUpdates: false, darkMode: false, }); const handleSave = () => { // Save settings functionality to be implemented alert('Settings saved successfully!'); }; const handleLogout = async () => { await logout(); }; return ( Settings Manage your account settings and preferences {/* Profile Settings */} Profile Information {/* Notification Settings */} Notifications setSettings({ ...settings, notifications: e.target.checked })} /> } label="Push Notifications" /> setSettings({ ...settings, emailUpdates: e.target.checked })} /> } label="Email Updates" /> {/* Appearance Settings */} Appearance setSettings({ ...settings, darkMode: e.target.checked })} /> } label="Dark Mode (Coming Soon)" disabled /> {/* Account Actions */} Account Actions ); }