import type { ReactNode } from 'react'; export interface FaqEntry { q: string; a: ReactNode; } export interface FaqListProps { entries: FaqEntry[]; className?: string; } /** * A definition list, always open. There is deliberately no `collapsed` prop: the * reference ships seven `dt`/`dd` pairs in served HTML and no `
`, and an * answer a crawler cannot read without running JavaScript is an answer that is * not there. */ export function FaqList({ entries, className }: FaqListProps) { return (
{entries.map(({ q, a }) => (
{q}
{a}
))}
); }