import type { NextPage } from 'next';
import dynamic from 'next/dynamic';

import StrapiSeo from '@/components/common/seo/StrapiSeo';
import { fetchSingleTypePageData } from '@/helpers/utilities/fetchAPI';
const TestingQualityAssurance = dynamic(
    () => import('@/components/serviceDetails/testingQualityAssurance/TestingQualityAssurance'),
);

const populateFields = [
    'seo.ogImage',
    'seo.multiStructureData',
    'developmentService.service.logo',
    'secureWeb.image',
    'processData',
];

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

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

export default TestingQualityAssurancePage;
