//Copyright(c) Alessandro Ghidini.All rights reserved. //Changes and improvements Copyright (c) The MudBlazor Team. using Microsoft.AspNetCore.Components; namespace Connected.Components; public interface ISnackbar : IDisposable { IEnumerable ShownSnackbars { get; } SnackbarConfiguration Configuration { get; } event Action OnSnackbarsUpdated; Snackbar Add(string message, Severity severity = Severity.Normal, Action configure = null, string key = ""); Snackbar Add(RenderFragment message, Severity severity = Severity.Normal, Action configure = null, string key = ""); Snackbar Add(Dictionary componentParameters = null, Severity severity = Severity.Normal, Action configure = null, string key = "") where T : IComponent; void Clear(); void Remove(Snackbar snackbar); }