import { Link } from '@metafam/ds'; import NextLink, { LinkProps } from 'next/link'; import React from 'react'; type Props = Omit, keyof LinkProps> & LinkProps; export const MetaLink: React.FC = ({ children, href, as, passHref, replace, scroll = true, shallow, isExternal, ...props }) => { if (isExternal && typeof href === 'string') { return ( {children} ); } return ( {/* NextLink passes the href */} {children} ); };