import React from 'react' import { LandingSection } from '@components/Dashboard/Pages/Org/OrgEditLanding/landing_types' interface LandingCustomProps { landing: { sections: LandingSection[] enabled: boolean } orgslug: string } function LandingCustom({ landing, orgslug }: LandingCustomProps) { const renderSection = (section: LandingSection) => { switch (section.type) { case 'hero': return (

{section.heading.text}

{section.subheading.text}

{section.buttons.map((button, index) => ( {button.text} ))}
) case 'text-and-image': return (

{section.title}

{section.text}

{section.buttons.map((button, index) => ( {button.text} ))}
{section.image.alt}
) case 'logos': return (
{section.title && (

{section.title}

)}
{section.logos.map((logo, index) => (
{logo.alt}
))}
) case 'people': return (

{section.title}

{section.people.map((person, index) => (
{person.name}

{person.name}

{person.description}

))}
) case 'featured-courses': return (

{section.title}

{section.courses.map((course, index) => (
{/* Course card content - you'll need to fetch course details */}

Course ID: {course.course_uuid}

))}
) default: return null } } return (
{landing.sections.map((section) => renderSection(section))}
) } export default LandingCustom