import React from "react";
import AosComponent from "@/components/aos.component";
import FooterComponent from "@/components/footer.component";
import SubscribeComponent from "@/components/subscribe.component";
import strapiApi from "@/api/strapi/strapi-api";
import SubHeaderComponent from "@/components/subHeader.component";
import FaqComponent from "@/components/faq.component";
import BootstrapComponent from "@/components/bootstrap.component";

export default async function About() {
    const {
        header,
        description,
        questionsAndAnswers,
        subscribe,
        footer,
        common
    } = await strapiApi.getFaqPage();
    return (
        <>
            { <SubHeaderComponent header={{header1:header,description}}  common={common}/> }
            { questionsAndAnswers &&  <FaqComponent config={questionsAndAnswers} /> }
            { subscribe && <SubscribeComponent config={subscribe} /> }
            { footer && <FooterComponent config={footer} /> }
            <AosComponent />
            <BootstrapComponent />
        </>

    );
}
export const dynamic = 'force-dynamic'
