Profile
Profile
is a component that displays display userinfo.
Basic Usage
By default, Profile
gets userinfo through useChatcontext
and displays it. You can also display it by passing the userInfo as props.
API
Profile
Property | Description | Type | Default | required |
---|---|---|---|---|
AvatarNode | set the custom avatar part when appType is 'pc' | ReactNode | - | false |
isTab | sets the display of the back button | Boolean | - | false |
hasLogout | set the display of exit button | Boolean | - | false |
userInfo | set userinfo | CommonUserInfoType | - | false |