${escapeHtml(heading)}
${subheading ? `${escapeHtml(subheading)}
` : ''}import type { Page, FormField } from '@/lib/schema/page'
import type { AssetManager } from '@/lib/assets/assetManager'
export type Exported = { html: string; css: string; js: string }
export type ExportOptions = { assetManager?: AssetManager }
function renderFaq(section: { props: { items: Array<{ q: string; a: string }> } }) {
const items: Array<{ q: string; a: string }> = Array.isArray(section.props.items) ? section.props.items : []
return `
${escapeHtml(it.a)} ${escapeHtml(subheading)}FAQ
${items
.map(
(it) => `
${escapeHtml(it.q)}
Features
${items.map((it) => `
Benefits
${items.map((it) => `
Testimonials
${items
.map(
(it) => `
“${escapeHtml(it.quote || '')}”
${escapeHtml(heading)}
${subheading ? `