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'); const faqs = [ { id: 'item-1', question: 'Do I need any prior experience to take your courses?', answer: "Not at all! My courses are designed for learners of all levels. Whether your a complete beginner or looking to sharpen existing skills, you'll find step-by-step guidance to help you progress with confidence.", }, { id: 'item-2', question: 'How long do I have access to the course materials?', answer: 'You have lifetime access to all course materials. Once you enroll, you can learn at your own pace and revisit the content whenever you need a refresher.', }, { id: 'item-3', question: 'Will I get a certificate after completing a course?', answer: "Yes! Upon successful completion of any course, you'll receive a certificate of completion that you can share on your professional profiles and with potential employers.", }, { id: 'item-4', question: 'Can I ask questions or get support during the course?', answer: 'Absolutely! Each course includes a discussion forum where you can ask questions, interact with other students, and receive support from instructors and the community.', }, { id: 'item-5', question: "What if I'm not satisfied with the course?", answer: "We offer a 30-day money-back guarantee. If you're not completely satisfied with your purchase, you can request a full refund within 30 days of enrollment, no questions asked.", }, ]; return (

{faqsCoursesSection?.title}

{faqsCoursesSection?.sub_title}

{faqsCoursesSection?.description}

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