jel/Jel/Views/Library/Item/ItemView.swift

26 lines
382 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:
Text("Unkown media")
}
}
}
#Preview {
ItemView(item: BaseItemDto())
}