//
//  LoserRoundSettingsView.swift
//  PadelClub
//
//  Created by Razmig Sarkissian on 01/06/2024.
//

import SwiftUI
import LeStorage

struct LoserRoundSettingsView: View {
    @EnvironmentObject var dataStore: DataStore
    @Environment(\.isEditingTournamentSeed) private var isEditingTournamentSeed
    @Environment(Tournament.self) var tournament: Tournament
    
    var body: some View {
        List {
            Section {
                RowButtonView(isEditingTournamentSeed.wrappedValue == true ? "Terminer l'édition" : "Éditer les tours joués") {
                    isEditingTournamentSeed.wrappedValue.toggle()
                }
            }
            
            //todo proposer ici l'impression des matchs de classements peut-être?
        }
    }
}

//#Preview {
//    LoserRoundSettingsView()
//}
