@using Microsoft.AspNetCore.Components.Routing
@using MudBlazor

<Router AppAssembly="@typeof(Routes).Assembly">
    <Found Context="routeData">
        <RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)" />
        <FocusOnNavigate RouteData="routeData" Selector="h1" />
    </Found>
    <NotFound>
        <LayoutView Layout="@typeof(MainLayout)">
            <MudCard Elevation="0">
                <MudText Typo="Typo.h6">
                    Strona nieznaleziona.
                </MudText>
            </MudCard>
        </LayoutView>
    </NotFound>
</Router>