import { Row } from '@components/common/form/Editor.js'; import React from 'react'; /** * FAQ block — a flexible mix of prose sections (rendered through the * existing EditorJS renderer) and accordion FAQ groups. Editorial copy * and Q&A live in the same widget so the homepage doesn't fragment into * twelve small ones. * * Prose: takes `content` as the EditorJS Row[] shape used by the * text-block widget — same renderer keeps visual consistency. * * FAQ items: native `
` / `` so keyboard + screen * reader work for free. The "single open at a time" mode is layered on * via a tiny inline script — no React hydration boundary required. */ export type FaqMaxWidth = 'narrow' | 'normal' | 'wide'; interface ProseSection { id: string; type: 'prose'; content: Row[] | string; } interface FaqItem { id: string; question: string; answer: string; } interface FaqSection { id: string; type: 'faq'; heading: string | null; items: FaqItem[]; } export type FaqSection_ = ProseSection | FaqSection; export interface FaqBlockProps { faqBlockWidget: { heading: string | null; sections: FaqSection_[]; maxWidth: FaqMaxWidth | null; allowMultipleOpen: boolean | null; }; } export default function FaqBlock({ faqBlockWidget }: FaqBlockProps): React.JSX.Element; export declare const query = "\n query Query(\n $heading: String\n $sections: JSON\n $maxWidth: String\n $allowMultipleOpen: Boolean\n ) {\n faqBlockWidget(\n heading: $heading\n sections: $sections\n maxWidth: $maxWidth\n allowMultipleOpen: $allowMultipleOpen\n ) {\n heading\n sections\n maxWidth\n allowMultipleOpen\n }\n }\n"; export declare const variables = "{\n heading: getWidgetSetting(\"heading\"),\n sections: getWidgetSetting(\"sections\", []),\n maxWidth: getWidgetSetting(\"maxWidth\", \"normal\"),\n allowMultipleOpen: getWidgetSetting(\"allowMultipleOpen\", false)\n}"; export {};