@page "/cart/{currentWishlistId}" @inject NavigationManager navigationManager;

Cart

@if (!isError) { @if (Products.Count > 0) { @foreach (var product in Products) {
@if(product.ImagesUrls != null && product.ImagesUrls.Length > 0) { product image } else { product image }
star
} } else {

Cart is empty

} } else {

Something went wrong
We are having some trouble loading the cart

}
@code { [Parameter] public string currentWishlistId {get; set; } [Parameter] public string chatId {get; set; } private void NavigateToMainPage() { navigationManager.NavigateTo($"/chat/{chatId}"); } }