import React from 'react';
import { SectionConfig, ToolItem, AppItem, CategoryItem, VariantSpec } from '@/types';
import { resolveBindings, isSectionVisible } from '@/lib/config/bindings';
import { HeroSection } from './HeroSection';
import { ToolGridSection } from './ToolGridSection';
import { TryItWidget } from './TryItWidget';
import { BeforeAfterSection } from './BeforeAfterSection';
import { AppCardsSection } from './AppCardsSection';
import { AppHandoffSection } from './AppHandoffSection';
import { AvailabilitySection } from './AvailabilitySection';
import { AppPickerSection } from './AppPickerSection';
import { StepsSection } from './StepsSection';
import { FeatureListSection } from './FeatureListSection';
import { FaqSection } from './FaqSection';
import { StatsSection } from './StatsSection';
import { PricingExplainerSection } from './PricingExplainerSection';
import { RelatedToolsSection } from './RelatedToolsSection';
import { RichTextSection } from './RichTextSection';
import { CtaBannerSection } from './CtaBannerSection';
import { NoticeSection } from './NoticeSection';
import { TransformationReelSection } from './TransformationReelSection';
import { MediaShowcaseSection } from './MediaShowcaseSection';
import { VisualUseCasesSection } from './VisualUseCasesSection';
import { WorkflowVisualizerSection } from './WorkflowVisualizerSection';
import { VerticalToolStackSection } from './VerticalToolStackSection';
import { MajorToolBannersSection } from './MajorToolBannersSection';
import { CinematicHorizontalScrollSection } from './CinematicHorizontalScrollSection';
import { SectionEntrance } from '@/components/ui/SectionEntrance';
interface SectionRendererProps {
section: SectionConfig;
context: {
site?: any;
page?: any;
tool?: ToolItem | null;
app?: AppItem | null;
homeApp?: AppItem | null;
tools?: ToolItem[];
apps?: AppItem[];
categories?: CategoryItem[];
variants?: VariantSpec[];
relatedTools?: ToolItem[];
locale?: string;
device?: 'mobile' | 'desktop';
};
}
export function SectionRenderer(props: SectionRendererProps) {
// Sticky scroll-linked sections must not have parent transforms or content-visibility containment
if (props.section.type === 'majorToolBanners' || props.section.type === 'cinematicHorizontal') {
return