using System.Globalization;

namespace Scry.Converters;

public class BoolToScanTextConverter : IValueConverter
{
    public object? Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
    {
        if (value is bool isProcessing)
            return isProcessing ? "Scanning..." : "Scan Card";
        return "Scan Card";
    }

    public object? ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
    {
        throw new NotImplementedException();
    }
}
