import * as React from 'react' import isEqual from 'react-fast-compare' export const wrapNextImage = (NextImage: any): React.FC => { return React.memo(function ReactNotionXNextImage({ src, alt, width, height, className, style, layout, ...rest }) { if (!layout) { layout = width && height ? 'intrinsic' : 'fill' } return ( ) }, isEqual) } export const wrapNextLink = (NextLink: any): React.FC => function ReactNotionXNextLink({ href, as, passHref, prefetch, replace, scroll, shallow, locale, ...linkProps }) { return ( ) }