mirror of
https://github.com/yattee/yattee.git
synced 2024-12-15 14:50:32 +05:30
19 lines
467 B
Swift
19 lines
467 B
Swift
import SwiftUI
|
|
|
|
struct VideosView: View {
|
|
@EnvironmentObject private var state: AppState
|
|
|
|
@Binding var tabSelection: TabSelection
|
|
var videos: [Video]
|
|
|
|
var body: some View {
|
|
Group {
|
|
if state.profile.listing == .list {
|
|
VideosListView(tabSelection: $tabSelection, videos: videos)
|
|
} else {
|
|
VideosCellsView(videos: videos, columns: state.profile.cellsColumns)
|
|
}
|
|
}
|
|
}
|
|
}
|