LeadGenTemplate.tsx20 lines · main
| 1 | import type { LeadGenPage } from '../schemas' |
| 2 | import HeroSection from '../sections/HeroSection' |
| 3 | import SectionRenderer, { type CustomSectionRenderers } from '../sections/SectionRenderer' |
| 4 | |
| 5 | export default function LeadGenTemplate({ |
| 6 | page, |
| 7 | customRenderers, |
| 8 | }: { |
| 9 | page: LeadGenPage |
| 10 | customRenderers?: CustomSectionRenderers |
| 11 | }) { |
| 12 | return ( |
| 13 | <div className="flex flex-col gap-16 sm:gap-24"> |
| 14 | <HeroSection section={page.hero} /> |
| 15 | {page.sections?.map((section, i) => ( |
| 16 | <SectionRenderer key={i} section={section} customRenderers={customRenderers} /> |
| 17 | ))} |
| 18 | </div> |
| 19 | ) |
| 20 | } |