summaryrefslogtreecommitdiff
path: root/Jel/Views/Library/Item/ItemInfoView.swift
blob: 103acf9d29cc73f8f16c4307e50a6d5b5e974fa7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
//  ItemInfoView.swift
//  Jel
//
//  Created by zerocool on 12/24/23.
//

import SwiftUI
import JellyfinKit

struct ItemInfoView: View {
  @State var item: BaseItemDto
  
  var body: some View {
    VStack(alignment: .leading) {
      HStack {
        Text((item.productionYear != nil) ? String(item.productionYear!) : "---")
        Text("•")
        Text(item.genres?.first ?? "---")
      }
      Text(item.getRuntime() ?? "-:--")
    }
    .font(.caption)
  }
}

//#Preview {
//  ItemInfoView()
//}