// import MicrosoftVirtualAgent from '@/components/microsoftVirtualAgent/MicrosoftVirtualAgent'
import { NextPage } from 'next';
import dynamic from 'next/dynamic';
import StrapiSeo from '@/components/common/seo/StrapiSeo';
import { fetchSingleTypePageData } from '@/helpers/utilities/fetchAPI';
const MicrosoftVirtualAgent = dynamic(() => import('@/components/microsoftVirtualAgent/MicrosoftVirtualAgent'));

const populateFields = [
    'seo.ogImage',
    'seo.multiStructureData',
    'Hero.buttonIcon',
    'Hero.bottomImages',
    'Service.serviceList.image',
    'TypeOf.typeCard.image',
    'benefit.FAQ.icon',
    'Tabs.tabs.icon',
    'Tabs.tabs.bigImage',
    'ChooseUs.chooseCard.image',
    'FAQ.FAQ.icon',
    'clients.brandLogos.brands.logo',
];

export async function getStaticProps() {
    return await fetchSingleTypePageData(populateFields, 'virtual-agent');
}

const MicrosoftVirtualAgentPage: NextPage = ({ data }: any) => {
    return (
        <>
            <StrapiSeo content={data.data?.attributes?.seo} />
            <MicrosoftVirtualAgent data={data.data?.attributes} />
        </>
    );
};

export default MicrosoftVirtualAgentPage;
