Renders the header of a user's profile, where the signed-in user also edits their own avatar and email.
f
ProfileHeader(unnamed 0: ProfileHeaderProps): React.JSX.Element
Renders the avatar, username, role and inviter, and for a user from another
instance, a link to their profile there. Visitors get a follow button. On
their own profile, users change their avatar (PUT /api/me/avatar) and
email (PATCH /api/me), unless their account comes from another instance, and invite
someone; their settings, the site's tools and logging out are in the
header's avatar menu.
I
ProfileHeaderProps
Passed to ProfileHeader by UserPublicProfile, once loaded.
- isOwnProfile: boolean
-
onUserChange: (user: PublicUser) => void
Called with the user as a new avatar left them.
- user: PublicUser
Usage
import * as mod from "src/components/profile/ProfileHeader.tsx";