Files
SteUP_Dotnet/SteUp.Shared/Core/Helpers/ModalHelper.cs
2026-02-12 10:43:16 +01:00

24 lines
609 B
C#

using MudBlazor;
using SteUp.Shared.Components.SingleElements.Modal;
namespace SteUp.Shared.Core.Helpers;
public class ModalHelper
{
public static async Task<DialogResult?> OpenSelectShop(IDialogService dialog)
{
var modal = await dialog.ShowAsync<ModalSelectShop>(
"ModalSelectShop",
new DialogParameters(),
new DialogOptions
{
FullScreen = false,
CloseButton = false,
NoHeader = true,
BackdropClick = true
}
);
return await modal.Result;
}
}