'use client'; import React, { useState } from 'react'; import { useAuth } from '@/context/AuthContext'; import { useTheme } from 'next-themes'; interface SettingsPageProps { userEmail?: string; } export default function SettingsPage({ userEmail }: SettingsPageProps) { const { logout } = useAuth(); const { theme, setTheme } = useTheme(); const [showConfirm, setShowConfirm] = useState(false); return (
{/* Header */}

Settings

Manage your preferences and account

{/* Settings Card */}
{/* Account Section */}

Account

Email

{userEmail || 'Not set'}

{/* Appearance Section */}

Appearance

Theme

{['light', 'dark', 'system'].map(t => ( ))}
{/* About Section */}

About

Prayer Journal v1.0

A simple, private space for your daily prayers and reflections.

{/* Logout Section */}
{/* Logout Confirmation Modal */} {showConfirm && (

Logout?

Are you sure you want to logout?

)}
); }