ProfileSummary
ProfileSummary is a composable that displays a mini profile card. Given a Profile, it displays a profile summary card using the other atomic components provided within the SDK.
Parameters
profile
The user's profile information
modifier
Composable modifier
fun ProfileSummary(state: ComponentState<Profile>, modifier: Modifier = Modifier, avatar: @Composable (state: ComponentState<Profile>) -> Unit = { profileState ->
Avatar(
state = profileState,
size = 72.dp,
modifier = Modifier.clip(CircleShape),
)
}, viewProfile: @Composable (state: ComponentState<Profile>) -> Unit = { profileState ->
ViewProfileButton(
state = profileState,
modifier = Modifier.height(32.dp),
)
})
ProfileSummary is a composable that displays a mini profile card. Given a ComponentState for a Profile, it displays a profile summary card using the other atomic components.
Parameters
state
The user's profile state
modifier
Composable modifier
avatar
Composable to display the user avatar
viewProfile
Composable to display the view profile button