'use client' import React, { useState } from 'react' import type { FDFaqBlock as FDFaqBlockProps } from '@/payload-types' import RichText from '@/components/RichText' export const FDFaqBlockComponent: React.FC = ({ heading, items, theme = 'gray', }) => { const [openIndex, setOpenIndex] = useState(null) const bgClass = theme === 'dark' ? 'bg-fd-navy' : theme === 'gray' ? 'bg-fd-gray-light' : 'bg-white' const headingColor = theme === 'dark' ? 'text-fd-yellow' : 'text-fd-navy' const textColor = theme === 'dark' ? 'text-white' : 'text-fd-navy' const borderColor = theme === 'dark' ? 'border-white/20' : 'border-fd-navy/10' const proseColor = theme === 'dark' ? 'text-white/80' : 'text-fd-navy/80' return (

{heading}

{items?.map((item, index) => (
))}
) }