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

const populateFields = [
    'seo.ogImage',
    'seo.multiStructureData',
    'hero.buttonIcon',
    'hero.bottomImages',
    'brandLogo.logo',
    'Overview.powerOverviewCard.image',
    'whyUs.toolTipCard.icon',
    'Tabs.tabs.icon',
    'Tabs.tabs.bigImage',
    'Slider.ThreeDSlider.icon',
    'Slider.ThreeDSlider.image',
    'ChooseUs.chooseCard.image',
    'FAQ.FAQ.icon',
    'clients.brandLogos.brands.logo',
];

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

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

export default MicrosoftPowerBiPage;
