FAQItem.tsx 451 B

123456789101112131415161718192021
  1. import React from 'react';
  2. export interface FAQItemProps {
  3. question: string;
  4. answer: string;
  5. }
  6. const FAQItem: React.FC<FAQItemProps> = ({ question, answer }) => {
  7. return (
  8. <div className="bg-white rounded-lg shadow-xl p-6">
  9. <h3 className="text-xl font-serif text-vista-darkblue mb-3">
  10. {question}
  11. </h3>
  12. <p className="text-vista-darkblue/70">
  13. {answer}
  14. </p>
  15. </div>
  16. );
  17. };
  18. export default FAQItem;