import { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '@/components/ui/accordion'; import { getPageSection, getPropertyArray } from '@/lib/page'; import { IntroPageProps } from '@/types/page'; import { usePage } from '@inertiajs/react'; import Section from '../section'; const FAQs = () => { const { props } = usePage(); const { page, customize } = props; const faqsCoursesSection = getPageSection(page, 'faqs'); return (

{faqsCoursesSection?.title}

{faqsCoursesSection?.sub_title}

{faqsCoursesSection?.description}

{getPropertyArray(faqsCoursesSection).map((faq, index) => ( {faq.title} {faq.description} ))}
); }; export default FAQs;