I am using the Image component that ships with Next.js but its forcing me to set the width and height as values. I am using Tailwind CSS and using their utility classes to set the height and width.
<Image
src={imageSrc}
alt={name}
className="object-cover object-center"
layout="fill"
/>
The HTML Css Code that works is
<img
className="w-auto h-6 lg:block"
src="/img/logo-dark.png"
alt="nftHODL.club Logo"
/>

