ViewProfileButton
fun ViewProfileButton(profile: UserProfile, modifier: Modifier = Modifier, textStyle: TextStyle = MaterialTheme.typography.titleSmall.copy(color = MaterialTheme.colorScheme.onBackground), inlineContent: @Composable (String) -> Unit? = { DefaultInlineContent(textStyle.color) })
ViewProfileButton is a composable that displays a button to view a user's profile.
Parameters
profile
The user's profile information
modifier
Composable modifier
textStyle
The style to apply to the text
inlineContent
The content to display inline with the text, by default it is an arrow icon. It can be null if no content is needed.
fun ViewProfileButton(state: UserProfileState, modifier: Modifier = Modifier, textStyle: TextStyle = MaterialTheme.typography.titleSmall.copy(color = MaterialTheme.colorScheme.onBackground), inlineContent: @Composable (String) -> Unit? = { DefaultInlineContent(textStyle.color) })
ViewProfileButton is a composable that displays a button to view a user's profile or it's loading state.
Parameters
state
The user's profile state
modifier
Composable modifier
textStyle
The style to apply to the text
inlineContent
The content to display inline with the text, by default it is an arrow icon. It can be null if no content is needed.