//
//  MaintaiDetailImageCell.swift
//  PhoneManager
//
//  Created by edy on 2025/5/13.
//

import UIKit

class MaintaiDetailImageCell: UICollectionViewCell {


    @IBOutlet weak var coverImage: UIImageView!
    
    var selectChangeBlock:(() ->Void)?
    
    @IBOutlet weak var selectBtn: UIButton!
    override func awakeFromNib() {
        super.awakeFromNib()
        coverImage.layer.cornerRadius = 12
        coverImage.layer.masksToBounds = true
    }
    
    var model:AssetModel?{
        didSet{
            guard let model = model else{
                return
            }
            
            coverImage.asset.load(withLocalIdentifier: model.localIdentifier)
            
        }
    }
    
    
    @IBAction func selectClick(_ sender: Any) {
        selectChangeBlock?()
    }

}
