34 lines
921 B
TypeScript
34 lines
921 B
TypeScript
import type { NextPage } from 'next';
|
|
import dynamic from 'next/dynamic';
|
|
|
|
import StrapiSeo from '@/components/common/seo/StrapiSeo';
|
|
import { fetchSingleTypePageData } from '@/helpers/utilities/fetchAPI';
|
|
const ConvexSwift = dynamic(() => import('@/components/solution/convexSwift/ConvexSwift'));
|
|
const populateFields = [
|
|
'seo.ogImage',
|
|
'seo.multiStructureData',
|
|
'hero.logo',
|
|
'hero.image',
|
|
'hero.heroCard',
|
|
'convex.image',
|
|
'convex.crmDetails',
|
|
'convex.whyCRM',
|
|
'benefits.benefitsCard.logo',
|
|
'app.image',
|
|
];
|
|
|
|
export async function getStaticProps() {
|
|
return await fetchSingleTypePageData(populateFields, 'convex-swift');
|
|
}
|
|
|
|
const ConvexSwiftPage: NextPage = ({ data }: any) => {
|
|
return (
|
|
<>
|
|
<StrapiSeo content={data.data?.attributes?.seo} />
|
|
<ConvexSwift data={data.data?.attributes} />
|
|
</>
|
|
);
|
|
};
|
|
|
|
export default ConvexSwiftPage;
|