You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Connected.Components/Components/Snackbar/SnackbarState.cs

20 lines
574 B

2 years ago
// Copyright (c) A//Copyright(c) Alessandro Ghidini.All rights reserved.
//Changes and improvements Copyright (c) The MudBlazor Team.
namespace Connected.Components;
internal enum SnackbarState
{
Init,
Showing,
Hiding,
Visible
}
internal static class SnackbarStateExtensions
{
public static bool IsShowing(this SnackbarState state) => state == SnackbarState.Showing;
public static bool IsVisible(this SnackbarState state) => state == SnackbarState.Visible;
public static bool IsHiding(this SnackbarState state) => state == SnackbarState.Hiding;
}