@code { [Parameter] public RenderFragment Header { get; set; } = null!; [Parameter] public RenderFragment Body { get; set; } = null!; [Parameter] public RenderFragment? Footer { get; set; } = null; [Parameter] public bool Active { get; set; } [Parameter] public EventCallback OnClose { get; set; } public void OnDialogClose() { if (this.OnClose.HasDelegate) { this.OnClose.InvokeAsync(); } else { this.Active = false; } } }