@namespace MidrandBooks.Components @using Microsoft.AspNetCore.Components @using MidrandBooks.Models
@if (!string.IsNullOrEmpty(Book.CoverUrl)) { @Book.Title } else {
@Book.Category @Book.Title By @Book.Author
}
@if (Book.Bestseller) { Bestseller } @if (Book.Trending) { Trending }
@Book.Category

@Book.Title

@Book.Author
South African Price R @Book.Price.ToString("F2")
★ @Book.Rating.ToString("F1") (@Book.ReviewsCount)
@code { [Parameter] public BookModel Book { get; set; } = new(); [Parameter] public EventCallback OnSelectBook { get; set; } private async Task HandleSelect() { await OnSelectBook.InvokeAsync(Book); } }