import { ReactNode } from 'react'; import Container from '@/components/ui/Container'; interface AlternatingSectionProps { heading: string; description: string | ReactNode; mockup: ReactNode; layout: 'text-left' | 'text-right'; backgroundImage?: string; } export default function AlternatingSection({ heading, description, mockup, layout, backgroundImage }: AlternatingSectionProps) { return (
{backgroundImage && (
)}
{layout === 'text-left' ? ( <> {/* Text Content - Left */}

{heading}

{description}
{/* Mockup - Right (fade right) */}
{mockup}
) : ( <> {/* Mockup - Left (fade left) */}
{mockup}
{/* Text Content - Right */}

{heading}

{description}
)}
); }