@using Netina.AdminPanel.PWA.Layout
@using Netina.AdminPanel.PWA.Pages
<Router AppAssembly="@typeof(App).Assembly">
    <Found Context="routeData">
        <AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)">
            <NotAuthorized>
                <LoginPage/>
            </NotAuthorized>
        </AuthorizeRouteView>      
        
        <FocusOnNavigate RouteData="@routeData" Selector="h1"/>
        
    </Found>
    <NotFound>
        <MudRTLProvider RightToLeft="true">
            <MudThemeProvider IsDarkMode="@MainTheme.IsDarkMode" Theme="@MainTheme.MyCustomTheme" />
            <MudDialogProvider />
            <MudSnackbarProvider />

            <MudLayout>
                <div>
                    <PageTitle>پیدا نشد</PageTitle>
                    <NotFoundPage/>
                </div>
            </MudLayout>
        </MudRTLProvider>
    </NotFound>
    
    
</Router>

