//
//  AlarmFormView.swift
//  LeCountdown
//
//  Created by Laurent Morvillier on 01/02/2023.
//

import SwiftUI

struct AlarmFormView: View {
    
    var dateBinding: Binding<Date>
    
    var imageBinding: Binding<CoolPic>
    var soundsBinding: Binding<[Sound]>
    var playlistsBinding: Binding<[Playlist]>
    var repeatCountBinding: Binding<Int16>
    
    var body: some View {
        
        Form {
            
            Text("todo")
            
            
//            DatePicker("Time", selection: dateBinding, displayedComponents: .hourAndMinute)
//
//            SoundImageFormView(imageBinding: self.imageBinding,
//                               soundsBinding: self.soundBinding,
//                               playlistsBinding: self.playlistsBinding,
//                               repeatCountBinding: self.repeatCountBinding)
            
//            SoundImageFormView(imageBinding: imageBinding, soundBinding: soundBinding, repeatCountBinding: self.repeatCountBinding)
        }
    }
}

struct AlarmFormView_Previews: PreviewProvider {
    static var previews: some View {
        AlarmFormView(dateBinding: .constant(Date()),
                      imageBinding: .constant(.pic1), soundsBinding: .constant([]), playlistsBinding: .constant([]), repeatCountBinding: .constant(2))
    }
}
