@using Moonlight.Shared.Layouts

<Router AppAssembly="@typeof(BlazorApp).Assembly">
    <Found Context="routeData">
        <CascadingValue TValue="Type" Name="TargetPageType" Value="routeData.PageType">
            <RouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)"/>
        </CascadingValue>
    </Found>
    <NotFound>
        <PageTitle>Not found</PageTitle>
        <LayoutView Layout="@typeof(NotFoundLayout)">
            <NotFoundAlert />
        </LayoutView>
    </NotFound>
</Router>

@code 
{
    
}