import { Metadata } from "next";
import { createSeo } from "@/seo/MetaSeo";
import { fetchPageData } from "@/services/api";
import { AestheticOffersBulleDataProps } from "@/types/aesthetic-offers-bulle";
import AestheticBanner from "@/components/Aesthetic/AestheticMedicine/AestheticBanner";
import OurServices from "@/components/Aesthetic/AestheticMedicine/OurServices";
// import OurLocations from "@/components/CommonComponent/OurLocations";
import AestheticClinics from "@/components/Aesthetic/AestheticClinics";
import OurServicesWorks from "@/components/Aesthetic/AestheticMedicine/OurServicesWorks";
// import OurPricing from "@/components/Aesthetic/AestheticMedicine/OurPricing";
import AestheticsTestimonials from "@/components/ReviewsAndTestimonials/AestheticsTestimonials";
import Faqs from "@/components/CommonComponent/Faqs";
import LiveBooking from "@/components/CommonComponent/LiveBooking";

import Breadcrumbs from "@/components/CommonComponent/BreadCrumbs";


export async function generateMetadata(): Promise<Metadata> {
  return createSeo("pages/ad-landing-page", "/aesthetic-medicine/aesthetic-offers-bulle");
}

export default async function AestheticOffersBullePage() {
  const AestheticOffersBulleData = await fetchPageData<AestheticOffersBulleDataProps>(
    "pages/ad-landing-page",
  );

  return (
    <div>
      <Breadcrumbs items={AestheticOffersBulleData?.data?.breadcrumbs} />
      {/* Render other components and content based on the fetched data */}
      < AestheticBanner 
        { ...AestheticOffersBulleData?.data?.limited_time_offer_banner }
    />
    <OurServices {...AestheticOffersBulleData?.data?.our_services} />
    {/* <OurLocations {...AestheticOffersBulleData?.data?.homepage_locations} /> */}
    <div className="mt-20">
    <AestheticClinics {...AestheticOffersBulleData.data.homepage_locations} />
    </div>
    
    <OurServicesWorks {...AestheticOffersBulleData?.data?.how_our_services_works} />
    {/* <OurPricing {...AestheticOffersBulleData?.data?.our_pricing} showCTA={false} /> */}
    <section className="mb-16 md:mb-24 xl:mb-30">
                    <div className="container">
                        <AestheticsTestimonials />
                    </div>
                </section>
    <Faqs {...AestheticOffersBulleData?.data?.homepage_faqs} />
    <LiveBooking {...AestheticOffersBulleData?.data?.live_booking} />
    </div>
  );
}
    