import { fetchPageData } from "@/services/api";
import { PeelingPageProps } from "@/types/peeling";
import Breadcrumbs from "@/components/CommonComponent/BreadCrumbs";
import ServicesBanner from "@/components/CommonComponent/ServicesBanner";
import OurSpecialist from "@/components/CommonComponent/OurSpecialist";
import TreatmentJourney from "@/components/CommonComponent/TreatmentJourney";
import AestheticsTestimonials from "@/components/ReviewsAndTestimonials/AestheticsTestimonials";
import RequestCostResources from "@/components/CommonComponent/CostResources";
import Faqs from "@/components/CommonComponent/Faqs";
import LiveBooking from "@/components/CommonComponent/LiveBooking";
import CausesAndRiskFactor from "@/components/CommonComponent/CausesRiskFactor";
import PediatricsOurTreatment from "@/components/Ophthalmology/PediatricOurTreatment";
import AestheticSymptomsAndIndications from "@/components/Aesthetic/AestheticMedicine/AestheticSymptoms";
import MonitoringAndPrevention from "@/components/CommonComponent/MonitoringAndPrevention";
import RecoveryAftercare from "@/components/CommonComponent/RecoveryAftercare";
import SafetyRisks from "@/components/CommonComponent/SafetyRisks";
import OurTreatment from "@/components/CommonComponent/OurTreatment";
import AestheticProducts from "@/components/Aesthetic/AestheticMedicine/AestheticProducts";
import { Metadata } from "next";
import { createSeo } from "@/seo/MetaSeo";

export async function generateMetadata(): Promise<Metadata> {
    return createSeo("pages/peeling", "/aesthetic/aesthetic-care/peeling");
}

export default async function BreastReductionPage() {
    const peelingPageData = await fetchPageData<PeelingPageProps>("pages/peeling");


    return (
        <>
            <Breadcrumbs items={peelingPageData.data.breadcrumbs} />
            <ServicesBanner
                className="mb-16 md:mb-30"
                maxWidthClasses="md:max-w-[600px]"
                maxWidthDescriptionClasses="md:max-w-[550px] xl:max-w-[630px]"
                {...peelingPageData.data.about_banner}
            />
            <CausesAndRiskFactor {...peelingPageData.data.causes_risk_factors} />
            <PediatricsOurTreatment {...peelingPageData.data.pediatric_treatment} />
            <AestheticSymptomsAndIndications {...peelingPageData.data.symptoms_and_indications} />
            <OurSpecialist className="bg-[#F2F4F6] py-16 md:py-20 xl:py-30" {...peelingPageData.data.homepage_meet_team} />
            <OurTreatment columns={4} {...peelingPageData.data.treatment_we_offer} />
            <AestheticProducts columns={6} {...peelingPageData.data.homepage_card_content__left_heading} />
            <TreatmentJourney
                showCTA={false} className="mb-16 md:mb-24 xl:mb-30"
                {...peelingPageData.data.surgery_steps}
            />
            <RecoveryAftercare {...peelingPageData.data.recovery_steps} />
            <SafetyRisks
                className="mb-16 md:mb-24 xl:mb-30" columns={2}
                {...peelingPageData.data.safety_and_risks}
            />
            <section className="mb-16 md:mb-20 xl:mb-30">
                <div className="container">
                    <AestheticsTestimonials />
                </div>
            </section>
            <MonitoringAndPrevention {...peelingPageData.data.monitor_and_prevention} />
            <RequestCostResources {...peelingPageData.data.clinicpage_left_content_button_with_right_image_with_points} />
            <Faqs {...peelingPageData.data.homepage_faqs} />
            <LiveBooking {...peelingPageData.data.live_booking} />
        </>
    )
}