<?xml version="1.0" encoding="UTF-8" ?>
<Shell
    x:Class="ShoopNCook.AppShell"
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:local="clr-namespace:ShoopNCook"
    xmlns:pages="clr-namespace:ShoopNCook.Pages"
    Shell.FlyoutBehavior="Disabled"
    Shell.NavBarIsVisible="False"
    Shell.TabBarBackgroundColor="White"
    Shell.TabBarTitleColor="{StaticResource Selected}"
    Shell.TabBarUnselectedColor="{StaticResource TextColorSecondary}">

    <ShellContent
        x:Name="Splash"
        Title="More"
        ContentTemplate="{DataTemplate pages:Splash}"
        Route="Splash"/>
    <ShellContent
        x:Name="LoginPage"
        Title="Login"
        ContentTemplate="{DataTemplate pages:LoginPage}"
        Route="LoginPage"/>
    <ShellContent
        x:Name="RegisterPage"
        Title="Register"
        ContentTemplate="{DataTemplate pages:RegisterPage}"
        Route="RegisterPage"/>
    
    
    <TabBar>
        
        
        <ShellContent
            x:Name="HomeTab"
            Title="Home"
            ContentTemplate="{DataTemplate pages:HomePage}"
            Route="HomePage"
            Icon="home.svg"/>

        <ShellContent
            x:Name="FavoritesTab"
            Title="Favorites"
            ContentTemplate="{DataTemplate pages:FavoritesPage}"
            Route="Favorites"
            Icon="hearth_on.svg"/>

        <ShellContent
            x:Name="MyListTab"
            Title="MyList"
            ContentTemplate="{DataTemplate pages:MyListPage}"
            Route="MyList"
            Icon="list.svg"/>

        <ShellContent
            x:Name="MoreTab"
            Title="More"
            ContentTemplate="{DataTemplate pages:MorePage}"
            Route="More"
            Icon="more.svg"/>
    </TabBar>
    
    <FlyoutItem Title="Search">
        <ShellContent
            Title="Search Page"
            ContentTemplate="{DataTemplate pages:SearchPage}"
            Route="Search"/>
    </FlyoutItem>
    <FlyoutItem Title="RecipePage">
        <ShellContent
            Title="RecipePage"
            ContentTemplate="{DataTemplate pages:RecipePage}"
            Route="RecipePage"/>
    </FlyoutItem>
    <FlyoutItem Title="MyRecipePage">
        <ShellContent
            Title="MyRecipesPage"
            ContentTemplate="{DataTemplate pages:MyRecipesPage}"
            Route="MyRecipe"/>
    </FlyoutItem>
    <FlyoutItem Title="ProfilePage">
        <ShellContent
            Title="ProfilePage"
            ContentTemplate="{DataTemplate pages:ProfilePage}"
            Route="EditProfile"/>
    </FlyoutItem>
    <FlyoutItem>
        <ShellContent
            x:Name="ForgotPassword"
            Title="Login"
            ContentTemplate="{DataTemplate pages:ForgotPassword}"
            Route="ForgotPassword"/>
    </FlyoutItem>
    <FlyoutItem>
        <ShellContent
            x:Name="CreateRecipe"
            Title="CreateRecipe"
            ContentTemplate="{DataTemplate pages:CreateRecipePage}"
            Route="CreateRecipe"/>
    </FlyoutItem>
    <FlyoutItem>
        <ShellContent
            x:Name="ConfirmMail"
            Title="ConfirmMail"
            ContentTemplate="{DataTemplate pages:ConfirmMail}"
            Route="ConfirmEmail"/>
    </FlyoutItem>
    
    
</Shell>