import { AboutTechnologiesSection } from "@/sections/about/AboutTechnologiesSection";
import { HostingBannerSection } from "@/sections/HostingBannerSection";
import { PricingSection } from "@/sections/PricingSection";
import { SupportPremiumSection } from "@/sections/SupportPremiumSection";
import { TestimonialsSection } from "@/sections/TestimonialsSection";
import {
  SERVICE_PAGE_CATALOGS,
  type ServicePageId,
} from "@/lib/servicePageCatalogs";

interface ServicePagesClosingSectionsProps {
  service: ServicePageId;
}

/** Seções finais padronizadas em todas as páginas de serviços. */
export function ServicePagesClosingSections({
  service,
}: ServicePagesClosingSectionsProps) {
  const config = SERVICE_PAGE_CATALOGS[service];

  return (
    <>
      <PricingSection
        catalog={config.planningCatalog}
        copy={config.planningCopy}
        showBanner={service === "apps"}
      />
      <AboutTechnologiesSection />
      <TestimonialsSection />
      <HostingBannerSection />
      <SupportPremiumSection />
    </>
  );
}
