using Robust.Client.AutoGenerated;
using Robust.Client.UserInterface.CustomControls;
using Robust.Client.UserInterface.XAML;

using static Content.Shared.MedicalScanner.SharedMedicalScannerComponent;

namespace Content.Client.MedicalScanner.UI
{
    [GenerateTypedNameReferences]
    public sealed partial class MedicalScannerWindow : DefaultWindow
    {
        public MedicalScannerWindow()
        {
            RobustXamlLoader.Load(this);
        }

        public void Populate(MedicalScannerBoundUserInterfaceState state)
        {
            ScanButton.Disabled = !state.IsScannable;
        }
    }
}
