<!--  Copyright (c) Microsoft Corporation and Contributors.  -->
<!--  Licensed under the MIT License.  -->

<UserControl
    x:Class="Peek.FilePreviewer.Controls.FailedFallbackPreviewControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid ColumnSpacing="24" RowSpacing="24">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <IconSourceElement
            Grid.Row="0"
            HorizontalAlignment="Center"
            VerticalAlignment="Center"
            Foreground="{StaticResource TextFillColorSecondaryBrush}">
            <IconSourceElement.IconSource>
                <FontIconSource FontSize="128" Glyph="&#xE783;" />
            </IconSourceElement.IconSource>
        </IconSourceElement>

        <TextBlock
            x:Uid="FailedFallbackTextBlock"
            Grid.Row="1"
            HorizontalAlignment="Center"
            VerticalAlignment="Center"
            Foreground="{StaticResource TextFillColorSecondaryBrush}"
            TextWrapping="Wrap" />

        <HyperlinkButton
            x:Uid="FailedFallbackReportBugHyperlinkButton"
            Grid.Row="2"
            HorizontalAlignment="Center"
            VerticalAlignment="Center"
            NavigateUri="https://aka.ms/powerToysReportBug" />
    </Grid>
</UserControl>
