summaryrefslogtreecommitdiff
path: root/Jel/Views/Library/Item/ItemView.swift
blob: da85f32fb9f4254e94d1f52964a54f6e73ccd906 (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
30
//
//  ItemView.swift
//  Jel
//
//  Created by zerocool on 12/23/23.
//

import SwiftUI
import JellyfinKit

struct ItemView: View {
  @State var item: BaseItemDto
  var body: some View {
    ScrollView {
      VStack {
        switch item.type {
          case .movie:
            ItemMovieView(item: item)
          default:
            ItemMediaView(item: item)
        }
      }
    }
    .scrollIndicators(.hidden)
  }
}

//#Preview {
//  ItemView(item: BaseItemDto())
//}