import Models
import SwiftUI

public enum DisplayType {
  case image
  case av

  public init(from attachmentType: MediaAttachment.SupportedType) {
    switch attachmentType {
    case .image:
      self = .image
    case .video, .gifv, .audio:
      self = .av
    }
  }
}
