@code { /// /// The event to call in the parent when the delete button is clicked. /// [Parameter] public EventCallback OnClick { get; set; } /// /// The text to display on the button. /// [Parameter] public string ButtonText { get; set; } = "Delete"; /// /// Handles the button click event. /// private async Task HandleClick() { await OnClick.InvokeAsync(); } }