Olá, por alguma razão aparece um erro para o href dentro da tag Link. A mensagem aparece como "Type '{ children: ReactNode; href: string; }' is not assignable to type 'IntrinsicAttributes & { children: ReactNode; }'.
Property 'href' does not exist on type 'IntrinsicAttributes & { children: ReactNode; }'.ts(2322)".
Segue o arquivo index
import React from 'react';
import Link from '../../link';
interface MenuItemProps extends React.LiHTMLAttributes<HTMLLIElement> {
href?: string;
}
const MenuItem = ({children, href = "#"}: MenuItemProps) => {
return (
<li>
<Link href={href}>{children}</Link>
</li>
);
};
export default MenuItem