'use client'; import React, { useState } from 'react'; import { useAuth } from '@/context/AuthContext'; interface AboutPageProps { userEmail?: string; } export default function AboutPage({ userEmail }: AboutPageProps) { const { logout, deleteAccount, sendVerificationEmail, user } = useAuth(); const [showLogoutConfirm, setShowLogoutConfirm] = useState(false); const [showDeleteDialog, setShowDeleteDialog] = useState(false); const [deleteStep, setDeleteStep] = useState(0); // 0=initial, 1=first confirm, 2=second confirm, 3=type DELETE, 4=type email const [deleteConfirmText, setDeleteConfirmText] = useState(''); const [deleteEmail, setDeleteEmail] = useState(''); const [deleteLoading, setDeleteLoading] = useState(false); const [deleteError, setDeleteError] = useState(''); const [verificationMessage, setVerificationMessage] = useState(''); const [sendingVerification, setSendingVerification] = useState(false); return (
Haver - Your Prayer Companion
Haver is a Hebrew word (חבר) meaning "friend," "companion," or "associate."
Pronounced: ha-VER (stress on the second syllable)
In Jewish culture, Haver represents the importance of building bonds and connections among peers. It reflects shared experiences and support within a community.
This app is your spiritual companion—a friend on your prayer journey, helping you connect with God and track your faith walk.
{userEmail || 'Not set'}
Verification Status
{user?.emailVerified ? (Haver v1.0
A simple, private space for your daily prayers and reflections.
Are you sure you want to logout?
This action cannot be undone.
All your prayers, reflections, and account data will be permanently deleted.
You will lose all your prayers and data. This is permanent.
Enter the word "DELETE" to proceed:
setDeleteConfirmText(e.target.value.toUpperCase())} placeholder="Type DELETE" className="w-full p-2 bg-slate-700 border border-slate-600 rounded-lg text-white placeholder-slate-500 mb-4 focus:ring-2 focus:ring-red-500 focus:border-transparent" />{deleteError}
} > )} {deleteStep === 3 && ( <>Enter your email to verify:
setDeleteEmail(e.target.value)} placeholder="Enter your email" className="w-full p-2 bg-slate-700 border border-slate-600 rounded-lg text-white placeholder-slate-500 mb-4 focus:ring-2 focus:ring-red-500 focus:border-transparent" />{deleteError}
} > )} {deleteStep === 4 && ( <>Check this box to confirm you understand your account will be permanently deleted:
{deleteError}
} > )}