1
0
mirror of https://github.com/yattee/yattee.git synced 2024-12-14 22:30:32 +05:30
yattee/Shared/Views/ContentItemView.swift

22 lines
496 B
Swift
Raw Normal View History

import Foundation
import SwiftUI
struct ContentItemView: View {
let item: ContentItem
var body: some View {
Group {
switch item.contentType {
case .playlist:
2021-10-23 04:34:03 +05:30
ChannelPlaylistCell(playlist: item.playlist)
case .channel:
ChannelCell(channel: item.channel)
2022-03-27 16:19:57 +05:30
case .video:
VideoCell(video: item.video)
2022-03-27 16:19:57 +05:30
default:
PlaceholderCell()
}
}
}
}