@using Microsoft.AspNetCore.Components.Authorization @using Microsoft.AspNetCore.Components.WebAssembly.Authentication @using Start.Client.Store.Features.Sidebar @using Start.Client.Store.State @using Fluxor @inherits Fluxor.Blazor.Web.Components.FluxorComponent @inject IState state @inject IDispatcher dispatch @inject NavigationManager Navigation @inject SignOutSessionStateManager SignOutManager
@* No off-canvas-toggle - add something that dispatches ShowSidebarAction *@
@this.ChildContent
@code { [Parameter] public RenderFragment ChildContent { get; set; } = null!; protected void OnSidebarHideClicked() { dispatch.Dispatch(new HideSidebarAction()); } protected void OnToggleEditMode() { dispatch.Dispatch(new ToggleEditModeAction()); } private async Task BeginSignOut(MouseEventArgs args) { await SignOutManager.SetSignOutState(); Navigation.NavigateTo("authentication/logout"); } }