import { Card } from '@/components/ui/card'; import { getPageSection } from '@/lib/page'; import Section from '@/pages/intro/partials/section'; import { Link, usePage } from '@inertiajs/react'; import { InnerPageProps } from '..'; const TopInstructors = () => { const { props } = usePage(); const { innerPage, customize, topInstructors } = props; const topInstructorsSection = getPageSection(innerPage, 'top_instructors'); return (

{topInstructorsSection?.title}

{topInstructorsSection?.description}

{topInstructors.map((instructor) => (

{instructor.user.name}

{instructor.designation}

))}
); }; export default TopInstructors;