using Avalonia.Controls;

namespace DodoSSH.Client.App.Views;

/// <summary>
/// The two host-key decisions, drawn over whatever the window is showing.
/// </summary>
/// <remarks>
/// Its data context is the <c>VaultViewModel</c>, so every binding in the markup is a property of the vault;
/// which of the two halves draws is decided there and the two are mutually exclusive. Whether it is on screen
/// at all is the shell's business — see <c>MainWindowViewModel.IsHostKeyDecisionShowing</c>, which is also
/// what collapses the terminal's WebView underneath it.
///
/// In its own file rather than in the window, like every other card here, because nothing inside that window
/// can be laid out by a test: WebView2's adapter refuses the headless session's thread.
/// </remarks>
internal sealed partial class HostKeyCard : UserControl
{
    public HostKeyCard() => InitializeComponent();
}
