<?xml version="1.0" encoding="utf-8" ?>
<toolkit:Popup xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="Dollet.Pages.Popups.ConfirmPopup"
             xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
             Color="Transparent"
             CanBeDismissedByTappingOutsideOfPopup="True"
             x:Name="This">

    <Border 
        Stroke="{StaticResource Primary}" 
        StrokeShape="RoundRectangle 20" 
        StrokeThickness="2"
        BackgroundColor="{AppThemeBinding Light={StaticResource White}, Dark={StaticResource Gray600}}">
        
        <VerticalStackLayout Spacing="10" Padding="30">
            <ProgressBar Progress="{Binding Progress}"/>
            
            <Label Text="Are you sure you want to delete your account?" />
            <Button 
                Text="Yes (With transactions)" 
                FontSize="20"
                MinimumWidthRequest="60"
                BorderColor="{AppThemeBinding Dark={StaticResource PrimaryDark}}"
                BorderWidth="1"
                HorizontalOptions="Center"
                Command="{Binding ConfirmForceCommand}"
                CommandParameter="{Binding Source={x:Reference This}}"/>
            
            <HorizontalStackLayout HorizontalOptions="Center" Spacing="10">
                <Button 
                    Text="Yes" 
                    FontSize="20"
                    MinimumWidthRequest="60"
                    BorderColor="{AppThemeBinding Dark={StaticResource PrimaryDark}}"
                    BorderWidth="1"
                    Command="{Binding ConfirmCommand}"
                    CommandParameter="{Binding Source={x:Reference This}}"/>
                
                <Button 
                    Text="No" 
                    FontSize="20"
                    MinimumWidthRequest="60"
                    BackgroundColor="White" 
                    TextColor="{StaticResource Primary}"
                    BorderColor="{StaticResource Primary}" 
                    BorderWidth="1"
                    Command="{Binding DismissCommand}"
                    CommandParameter="{Binding Source={x:Reference This}}"/>
            </HorizontalStackLayout>
        </VerticalStackLayout>
    </Border>
</toolkit:Popup>