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.
@username
onEdit
Props: see ProfileViewProps.
ProfileViewProps
<ProfileView name={user.name} username={user.username} email={user.email} onEdit={() => navigate("/profile/edit")}/> Copy
<ProfileView name={user.name} username={user.username} email={user.email} onEdit={() => navigate("/profile/edit")}/>
Read-only profile card.
Renders an avatar (derived initials), the display name,
@usernameand the email. IfonEditis provided it shows an "Edit Profile" button; otherwise the card is purely informative.Props: see
ProfileViewProps.