//
//  TournamentFieldsManagerView.swift
//  PadelClub
//
//  Created by Razmig Sarkissian on 22/03/2024.
//

import SwiftUI

struct TournamentFieldsManagerView: View {
    let localizedStringKey: String
    @Binding var count: Int
    var max: Int? = nil
    
    var body: some View {
        LabeledContent {
            StepperView(count: $count, minimum: 1, maximum: max)
        } label: {
            Text(localizedStringKey)
//            Text(count.formatted())
        }
    }
}

//#Preview {
//    TournamentFieldsManagerView(localizedStringKey: "test", count: .constant(2), max: 10)
//        .environment(Tournament.mock())
//}
