@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(MainLayout)">
            <p role="alert">Sorry, there's nothing at this address.</p>
        </LayoutView>
    </NotFound>
</Router>