Interface ProfileViewProps

Props for ProfileView.

interface ProfileViewProps {
    email: string;
    loading?: boolean;
    name: string;
    onEdit?: () => void;
    username: string;
}

Properties

email: string

Email address to display.

loading?: boolean

Shows a spinner inside the edit button and disables it.

name: string

Full name to display (falls back to username).

onEdit?: () => void

When provided, renders an "Edit Profile" button that calls this.

username: string

Username, shown as @username.