@if (ViewIndex == 1) {
Chats
M
Melody Macy
melody@altbox.com
2 weeks
Max Smith
max@kt.com
1 day
} else if (ViewIndex == 2) {
Some chat
@for (int i = 0; i < 9; i++) {
Brian Cox 2 mins
How likely are you to recommend our company to your friends and family ?
5 mins You
Hey there, we’re just writing to let you know that you’ve been subscribed to a repository on GitHub.
}
} else if (ViewIndex == 3) {
Create ticket
Name
Description
Tries
} else {
}

@code { private int ViewIndex = 0;

private async Task SetViewIndex(int index) { ViewIndex = index; await InvokeAsync(StateHasChanged); } }