import SearchInput from '@/components/search-input'; import { getPageSection } from '@/lib/page'; import { cn } from '@/lib/utils'; import { IntroPageProps } from '@/types/page'; import { router, usePage } from '@inertiajs/react'; import Section from '../section'; const Hero = () => { const { props } = usePage(); const heroSection = getPageSection(props.page, 'hero'); return (

{heroSection?.title}

{heroSection?.sub_title}

{heroSection?.description}

router.get(route('category.courses', { category: 'all', search: value }))} />
{/* Right Image */}
Student learning online
); }; export default Hero;