Function ProfileView

  • Read-only profile card.

    Renders an avatar (derived initials), the display name, @username and the email. If onEdit is provided it shows an "Edit Profile" button; otherwise the card is purely informative.

    Props: see ProfileViewProps.

    Parameters

    Returns Element

    <ProfileView
    name={user.name}
    username={user.username}
    email={user.email}
    onEdit={() => navigate("/profile/edit")}
    />