Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?
I am getting this error when in nextJs when I wrap an Image tag inside a Link tag :
<Link href="/">
<Image src={logo} width={50} height={50} className="btn rounded-full bg-transparent" />
</Link>