I'm trying to add the Next Image component to my project.
And I have a problem, the image disappears when I add layout='responsive'
.
code:
<Box>
<Link href='/' >
<Image src='/images/logoDark.svg'
alt='navbar-logo'
width={260}
height={56}
layout='responsive'
/>
</Link>
</Box>
Is there a solution? or any other way to optimize images?