using Avalonia.Data.Converters;
using System.Linq;

namespace VeloeMinecraftLauncher.Utils
{
    public static class Converters
    {
        /// <summary>
        /// Gets list of bool values and conjuct them
        /// </summary>
        public static FuncMultiValueConverter<bool?, bool> BoolConjuctionConventer { get; } =
            new FuncMultiValueConverter<bool?, bool>(bools => !bools.Any(x => x is null or false));
    }
}
