import * as React from 'react'; import Link from './Link'; import type { BaseScreen, LinkProps } from './navigationUtils'; import { extractLinkProps } from './Link.shared'; export default function createLinkComponent

( Component: React.ComponentType

) { return function ( props: Omit, 'children'> & { skipLinkBehaviourIfPressIsDefined?: boolean; } & React.ComponentProps ) { const { otherProps, ...linkConfiguration } = extractLinkProps(props); return ( {(linkProps) => } ); }; }