mirror of
https://github.com/yattee/yattee.git
synced 2024-12-26 23:43:41 +00:00
22 lines
496 B
Swift
22 lines
496 B
Swift
import Foundation
|
|
import SwiftUI
|
|
|
|
struct ContentItemView: View {
|
|
let item: ContentItem
|
|
|
|
var body: some View {
|
|
Group {
|
|
switch item.contentType {
|
|
case .playlist:
|
|
ChannelPlaylistCell(playlist: item.playlist)
|
|
case .channel:
|
|
ChannelCell(channel: item.channel)
|
|
case .video:
|
|
VideoCell(video: item.video)
|
|
default:
|
|
PlaceholderCell()
|
|
}
|
|
}
|
|
}
|
|
}
|