using MudBlazor; using Template.Shared.Components.SingleElements.Modal; namespace Template.Shared.Core.Helpers; public class ModalHelpers { public static async Task OpenActivityForm(IDialogService dialog, string? id = null) { var modal = await dialog.ShowAsync( "Activity form", new DialogParameters { { x => x.Id, id } }, new DialogOptions { FullScreen = true, CloseButton = false, NoHeader = true } ); return await modal.Result; } }