@code { /// /// The event to call in the parent when the confirm button is clicked. /// [Parameter] public EventCallback OnClick { get; set; } /// /// The content to be displayed inside the button. /// [Parameter] public RenderFragment? ChildContent { get; set; } /// /// Handles the button click event. /// private async Task HandleClick() { await OnClick.InvokeAsync(); } }