26 lines
387 B
Swift
26 lines
387 B
Swift
//
|
|
// 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 {
|
|
switch item.type {
|
|
case .movie:
|
|
ItemMovieView(item: item)
|
|
default:
|
|
ItemMediaView(item: item)
|
|
}
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
ItemView(item: BaseItemDto())
|
|
}
|