using System;
using System.Globalization;
using Gallery.Resources.UI;
using Xamarin.Forms;

namespace Gallery.Resources
{
    public class FavoriteIconConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return value == null ?
                Definition.IconLove :
                Definition.IconCircleLove;
        }

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