import SwiftUI
import ComposeApp

struct AddResidenceView: View {
    @Binding var isPresented: Bool
    var onResidenceCreated: (() -> Void)?

    var body: some View {
        ResidenceFormView(
            existingResidence: nil,
            isPresented: $isPresented,
            onSuccess: onResidenceCreated
        )
    }
}

#Preview {
    AddResidenceView(isPresented: .constant(true))
}
