using CommunityToolkit.Maui.Views; using ShoopNCook.Views.Components; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ShoopNCook { internal class UserNotifier { private static void Show(NoticePopup popup) { var page = Shell.Current.CurrentPage; page.ShowPopup(new Popup { Content = popup }); } public static void Error(string message) { Show(new NoticePopup()); } public static void Warn(string message) { Show(new NoticePopup()); } public static void Notice(string message) { Show(new NoticePopup()); } public static void Success(string message) { Show(new NoticePopup()); } } }