import { Button } from '@/components/ui/button'; import { Carousel, type CarouselApi, CarouselContent, CarouselItem } from '@/components/ui/carousel'; import { getPageSection } from '@/lib/page'; import { IntroPageProps } from '@/types/page'; import { Link, usePage } from '@inertiajs/react'; import Autoplay from 'embla-carousel-autoplay'; import { ChevronLeft, ChevronRight } from 'lucide-react'; import { useState } from 'react'; import InstructorSocials from '../instructor-socials'; import Section from '../section'; const TopInstructors = () => { const { props } = usePage(); const { page, customize, topInstructors } = props; const topInstructorsSection = getPageSection(page, 'top_instructors'); const [api, setApi] = useState(); return (

{topInstructorsSection?.title}

{topInstructorsSection?.sub_title}

{topInstructorsSection?.description}

{topInstructors.map((instructor) => { return (

{instructor.user.name}

{instructor.designation}

); })}
); }; export default TopInstructors;