import StrapiSeo from '@/components/common/seo/StrapiSeo';
import MicrosoftRobotic from '@/components/nicrosoftRobotic/MicrosoftRobotic';
import { fetchSingleTypePageData } from '@/helpers/utilities/fetchAPI';

const populateFields = [
    'seo.ogImage',
    'seo.multiStructureData',
    'hero.buttonIcon',
    'hero.bottomImages',
    'overview.overviewCard',
    'brandLogo.logo',
    'needs.serviceList.image',
    'solution.serviceList.image',
    'technology.serviceList.image',
    'cases.ThreeDSlider.icon',
    'cases.ThreeDSlider.image',
    'whyUs.chooseCard.image',
    'faq.FAQ.icon',
    'clients.brandLogos.brands.logo',
];

export async function getStaticProps() {
    return await fetchSingleTypePageData(populateFields, 'robotic-process-automated');
}

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

export default MicrosoftRoboticPage;
