import type {FaqItem} from '@/types/content';

type FaqProps = {
  items: FaqItem[];
};

export function Faq({items}: FaqProps) {
  return (
    <div className="faqList">
      {items.map((item, index) => (
        <details key={`${index}-${item.question}`}>
          <summary>{item.question}</summary>
          <p>{item.answer}</p>
        </details>
      ))}
    </div>
  );
}
