import * as React from 'react'; import PageAccessCheck, { PageAccessCheckProps } from './PageAccessCheck'; type PageAccessProps = Omit; export const withPageAccessCheck =

(Component: React.ComponentType>) => (pageAccessProps: PageAccessProps) => (props: P) => ( );