MathiasKandelborg/TRUE-framework

View on GitHub
components/UI/Pages/page/DefaultPage.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import RenderPage from '@components/HoC/RenderPage'
import PageSEO from '@components/HoC/SEO/Page'
import { APIRoute } from 'cms/APIRoute'

interface ICustomPageDefaultProps {
  currentRoute: APIRoute
}

const CustomPageDefault: React.FC<ICustomPageDefaultProps> = (props) => {
  const { currentRoute } = props

  return (
    <>
      <PageSEO
        title={currentRoute.page.title}
        description={currentRoute.page.description}
      />
      <RenderPage
        preview={false}
        loading={false}
        pageProps={currentRoute.page}
      />
    </>
  )
}

export default CustomPageDefault