import { Link } from 'react-router-dom' import { useAuth } from '../context/AuthContext' type Props = { onClose: () => void } function ProfileField({ label, value }: { label: string; value: string }) { return (
{label}

{value || '—'}

) } export function ProfileModal({ onClose }: Props) { const { user } = useAuth() return (

Profile

{!user ? ( <>

You’re not signed in. Profile details appear here after you create an account or sign in (the same information you enter on registration: email and name).

Sign in / Create account
) : ( <>

Information stored with your account (from sign-up and saved on the server). Your password is never shown.

Account ID

{user.id}

To change your name, email, or password, open Account from the menu.

)}
) }