import React from 'react';
import { PekProvider } from '../../../../../contexts/PekContext';
import PageRenderer from '../../../PageRenderer';
import { pekPageData } from '../pek';

const PekPageWrapper: React.FC = () => {
  // Create a version of pageData without customComponent to avoid infinite loop
  const { customComponent, ...pageDataWithoutCustom } = pekPageData;
  
  return (
    <PekProvider>
      <PageRenderer pageData={pageDataWithoutCustom} />
    </PekProvider>
  );
};

export default PekPageWrapper;

