import SwiftUI

struct FormContentView: View {
    @Bindable var form: RemoteFormData

    var body: some View {
        ScrollView {
            VStack(alignment: .leading, spacing: 16) {
                ForEach(form.widgets) { widget in
                    WidgetView(formId: form.id, widget: widget)
                }
            }
            .padding()
        }
        .navigationTitle(form.title)
    }
}
