import SwiftUI
import ComposeApp

/// Wrapper view for adding a new task
/// This is now just a convenience wrapper around TaskFormView in "add" mode
struct AddTaskView: View {
    let residenceId: Int32
    @Binding var isPresented: Bool

    var body: some View {
        TaskFormView(residenceId: residenceId, residences: nil, existingTask: nil, isPresented: $isPresented)
    }
}

#Preview {
    AddTaskView(residenceId: 1, isPresented: .constant(true))
}
