import CourseCard3 from '@/components/cards/course-card-3'; import { getPageSection } from '@/lib/page'; import { cn } from '@/lib/utils'; import { IntroPageProps } from '@/types/page'; import { usePage } from '@inertiajs/react'; import Section from '../section'; const Hero = () => { const { props } = usePage(); const { page, heroCourses } = props; const heroSection = getPageSection(page, 'hero'); const courseLength = heroCourses?.length ?? 0; return (
{heroCourses.length > 0 ? (
1 ? 'lg:grid-cols-2' : 'lg:grid-cols-1', courseLength > 2 ? 'gap-y-10' : 'gap-y-14', )} > {heroCourses?.map((course) => ( ))}
) : (

Top Courses Hero Section. There is no course added.

)}
); }; export default Hero;