FormSection.tsx23 lines · main
| 1 | 'use client' |
| 2 | |
| 3 | import MarketingForm from '../../forms/MarketingForm' |
| 4 | import type { GoFormSection } from '../schemas' |
| 5 | |
| 6 | export default function FormSection({ section }: { section: GoFormSection }) { |
| 7 | return ( |
| 8 | <section> |
| 9 | <div className="max-w-2xl mx-auto px-8"> |
| 10 | <MarketingForm |
| 11 | fields={section.fields} |
| 12 | submitLabel={section.submitLabel} |
| 13 | title={section.title} |
| 14 | description={section.description} |
| 15 | disclaimer={section.disclaimer} |
| 16 | successMessage={section.successMessage} |
| 17 | successRedirect={section.successRedirect} |
| 18 | crm={section.crm} |
| 19 | /> |
| 20 | </div> |
| 21 | </section> |
| 22 | ) |
| 23 | } |