using System.Globalization;
using System.Windows.Data;

namespace NexusShell.Converters;

public sealed class DockStaggerConverter : IValueConverter
{
    public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
    {
        var index = value is int i ? i : 0;
        var ms = index * 45;
        return new TimeSpan(0, 0, 0, 0, ms);
    }

    public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) =>
        throw new NotSupportedException();
}
