@Preview(showBackground = true, name = "SelectedChannelMenu Preview (Centered dialog)") @Composableprivate fun SelectedChannelMenuCenteredDialogPreview() {ChatTheme {Box(modifier = Modifier.fillMaxSize()) {SelectedChannelMenu(modifier = Modifier.padding(16.dp).fillMaxWidth().wrapContentHeight().align(Alignment.Center),shape = RoundedCornerShape(16.dp),selectedChannel =PreviewChannelData.channelWithManyMembers,isMuted = false,currentUser = PreviewUserData.user1,onChannelOptionClick = {},onDismiss = {})}}}
Preview of [SelectedChannelMenu] styled as a centered modal dialog. Should show a centered dialog with channel members and channel options.