uyu423/resume-nextjs

View on GitHub
component/presentation/index.tsx

Summary

Maintainability
A
3 hrs
Test Coverage
import { PropsWithChildren } from 'react';
import { CommonSection } from '../common/CommonSection';
import PresentationRow from './row';
import { IPresentation } from './IPresentation';
import { PreProcessingComponent } from '../common/PreProcessingComponent';

type Payload = IPresentation.Payload;

export const Presentation = {
  Component: ({ payload }: PropsWithChildren<{ payload: Payload }>) => {
    return PreProcessingComponent<Payload>({
      payload,
      component: Component,
    });
  },
};

function Component({ payload }: PropsWithChildren<{ payload: Payload }>) {
  return (
    <CommonSection title="PRESENTATION">
      <PresentationRow payload={payload} />
    </CommonSection>
  );
}