@Preview(showBackground = true, name = "SelectedChannelMenu Preview (Bottom sheet dialog)") @Composableprivate fun SelectedChannelMenuBottomSheetDialogPreview() { ChatTheme {Box(modifier = Modifier.fillMaxSize()) {SelectedChannelMenu(modifier = Modifier.fillMaxWidth().wrapContentHeight().align(Alignment.BottomCenter),shape = ChatTheme.shapes.bottomSheet,selectedChannel = PreviewChannelData.channelWithManyMembers,isMuted = false,currentUser = PreviewUserData.user1,onChannelOptionClick = {},onDismiss = {})}}}
Preview of [SelectedChannelMenu] styled as a bottom sheet dialog. Should show a bottom sheet dialog with channel members and channel options.