@using CraftSharp.Models;
<CascadingBlazoredModal>
    <Router AppAssembly="@typeof(App).Assembly">
        <Found Context="routeData">
            <AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(CraftLayout)" />
            <FocusOnNavigate RouteData="@routeData" Selector="h1" />
        </Found>
        <NotFound>
           <CascadingAuthenticationState>
                    <LayoutView Layout="@typeof(CraftLayout)">
                        <p>Sorry, there's nothing at this address.</p>
                    </LayoutView>
        </CascadingAuthenticationState>
        </NotFound>
    </Router>
</CascadingBlazoredModal>


