import { Link as RouterLink } from 'react-router-dom'; import { Wrapper } from './styles'; type LinkProps = { href: string; children?: React.ReactNode | JSX.Element | string; color?: | 'client' | 'productOwner' | 'developer' | 'admin' | 'success' | 'warning' | 'error' | 'black' | 'white' | string; className?: string; iconLeft?: React.SVGProps; onClick?: () => void; }; const Link = ({ href, children, iconLeft, ...props }: LinkProps) => { return ( {iconLeft && {iconLeft}} {children} ); }; export default Link;