//
//  MediaPreviewImageViewModel.swift
//  Mastodon
//
//  Created by MainasuK Cirno on 2021-4-28.
//

import UIKit
import Combine
import Alamofire
import AlamofireImage
import FLAnimatedImage
import MastodonCore

class MediaPreviewImageViewModel {

    var disposeBag = Set<AnyCancellable>()
    
    // input
    let context: AppContext
    let item: ImagePreviewItem
    
    init(context: AppContext, item: ImagePreviewItem) {
        self.context = context
        self.item = item
    }
    
}

extension MediaPreviewImageViewModel {
    
    public struct ImagePreviewItem {
        let assetURL: URL?
        let thumbnail: UIImage?
        let altText: String?
    }

}
