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}
)
case 'text-and-image':
return (
{section.title}
{section.text}
)
case 'logos':
return (
{section.logos.map((logo, index) => (

))}
)
case 'people':
return (
{section.title}
{section.people.map((person, index) => (
{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