mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 22:00:31 +05:30
20 lines
421 B
Swift
20 lines
421 B
Swift
|
import Foundation
|
||
|
import SwiftUI
|
||
|
|
||
|
struct ContentItemView: View {
|
||
|
let item: ContentItem
|
||
|
|
||
|
var body: some View {
|
||
|
Group {
|
||
|
switch item.contentType {
|
||
|
case .playlist:
|
||
|
VideoCell(video: item.video)
|
||
|
case .channel:
|
||
|
ChannelCell(channel: item.channel)
|
||
|
default:
|
||
|
VideoCell(video: item.video)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|