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

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

export default async function BreastReductionPage() {
    const blepharoplastyPageData = await fetchPageData<BlepharoplastyPageProps>("pages/blepharoplasty");


    return (
        <>
            <Breadcrumbs items={blepharoplastyPageData.data.breadcrumbs} />
            <ServicesBanner
                className="mb-16 md:mb-30"
                maxWidthClasses="md:max-w-[600px]"
                maxWidthDescriptionClasses="md:max-w-[550px] xl:max-w-[630px]"
                {...blepharoplastyPageData.data.about_banner}
            />
            <CausesAndRiskFactor {...blepharoplastyPageData.data.causes_risk_factors} />
            <PediatricsOurTreatment {...blepharoplastyPageData.data.pediatric_treatment} />
            <AestheticSymptomsAndIndications {...blepharoplastyPageData.data.symptoms_and_indications} />
            <OurSpecialist
                className="bg-[#F2F4F6] py-12 md:py-20 xl:py-30"
                {...blepharoplastyPageData.data.homepage_meet_team}
            />
            <OurTreatment columns={4} {...blepharoplastyPageData.data.treatment_we_offer} />

            <AestheticProducts columns={6}  {...blepharoplastyPageData.data.homepage_card_content__left_heading} />
            <TreatmentJourney
                showCTA={false} className="mb-16 md:mb-24 xl:mb-30"
                {...blepharoplastyPageData.data.surgery_steps}
            />
            <RecoveryAftercare {...blepharoplastyPageData.data.recovery_steps} />
            <SafetyRisks
                className="mb-16 md:mb-24 xl:mb-30" columns={2}
                {...blepharoplastyPageData.data.safety_and_risks}
            />
            <section className="mb-16 md:mb-20 xl:mb-30">
                <div className="container">
                    <AestheticsTestimonials />
                </div>
            </section>
            <MonitoringAndPrevention {...blepharoplastyPageData.data.monitor_and_prevention} />
            <RequestCostResources {...blepharoplastyPageData.data.clinicpage_left_content_button_with_right_image_with_points} />
            <Faqs {...blepharoplastyPageData.data.homepage_faqs} />
            <LiveBooking {...blepharoplastyPageData.data.live_booking} />
        </>
    )
}