using UnityEngine;
using UnityEngine.UI;

namespace Darkmatter.Features.DrawingCatalog;

public class DrawingCatalogButton : MonoBehaviour
{
    public string Id { get; private set; }
    [SerializeField] private Image thumbnail;
    [SerializeField] private Button button;

    public void Initialize(string id,Sprite thumbnailSprite, UnityEngine.Events.UnityAction onClick)
    {
        Id = id;
        thumbnail.sprite = thumbnailSprite;
        button.onClick.AddListener(onClick);
    }
}