import strapiApi from "@/api/strapi/strapi-api";
import SubHeaderComponent from "@/components/subHeader.component";
import SubscribeComponent from "@/components/subscribe.component";
import FooterComponent from "@/components/footer.component";
import AosComponent from "@/components/aos.component";
import BootstrapComponent from "@/components/bootstrap.component";
import React from "react";
import ContactUsComponent from "@/components/contact.us.component";
import GoogleMapsComponent from "@/components/google.maps.component";

export default async function ContactPage(){

    const {
        header,
        description,
        contactUs,
        google_maps,
        subscribe,
        footer,
        common
    } = await strapiApi.getContactPage();
    return (
        <>
            { <SubHeaderComponent header={{header1:header,description}}  common={common}/> }
            { contactUs &&  <ContactUsComponent contactUs={contactUs} /> }
            { google_maps &&  <GoogleMapsComponent config={google_maps} /> }
            { subscribe && <SubscribeComponent config={subscribe} styleClass={"contact_subscribe_section"}  /> }
            { footer && <FooterComponent config={footer} />}
            <AosComponent />
            <BootstrapComponent />
        </>

    );

}

export const dynamic = 'force-dynamic'
