39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
import { NextPage } from 'next';
|
|
import dynamic from 'next/dynamic';
|
|
import StrapiSeo from '@/components/common/seo/StrapiSeo';
|
|
import { fetchSingleTypePageData } from '@/helpers/utilities/fetchAPI';
|
|
const MicrosoftPowerAppsSolution = dynamic(
|
|
() => import('@/components/microsoftPowerAppsSolution/MicrosoftPowerAppsSolution'),
|
|
);
|
|
|
|
const populateFields = [
|
|
'seo.ogImage',
|
|
'seo.multiStructureData',
|
|
'Hero.buttonIcon',
|
|
'Hero.bottomImages',
|
|
'Service.serviceList.image',
|
|
'TypeOf.typeCard.image',
|
|
'Advantage.FAQ.icon',
|
|
'Tabs.tabs.icon',
|
|
'Tabs.tabs.bigImage',
|
|
'HowToImprove.ImproveCard.image',
|
|
'ChooseUs.chooseCard.image',
|
|
'FAQ.FAQ.icon',
|
|
'clients.brandLogos.brands.logo',
|
|
];
|
|
|
|
export async function getStaticProps() {
|
|
return await fetchSingleTypePageData(populateFields, 'power-app');
|
|
}
|
|
|
|
const MicrosoftPowerAppsSolutionPage: NextPage = ({ data }: any) => {
|
|
return (
|
|
<>
|
|
<StrapiSeo content={data.data?.attributes?.seo} />
|
|
<MicrosoftPowerAppsSolution data={data.data?.attributes} />
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default MicrosoftPowerAppsSolutionPage;
|