import React, { MouseEvent } from 'react'; import { Link as RouterLink } from 'react-router-dom'; import Text, { TextProps } from '../../muiComponents/Text'; interface Props extends Pick { external?: boolean; className?: string; to: string; children?: React.ReactNode; onClick?: (event: MouseEvent) => void; } type LinkRef = HTMLAnchorElement; /* eslint-disable verdaccio/jsx-spread */ const Link = React.forwardRef(function Link( { external, to, children, variant, className, ...props }, ref ) { const LinkTextContent = {children}; return external ? ( {LinkTextContent} ) : ( {LinkTextContent} ); }); export default Link;