title: Problem with <Link> when I want using it for open modal in Next.js
body: <p>I have a problem with the modal in next.js.</p>
  <p>Bellow my code:</p>
  <p><a href="https://stackblitz.com/edit/nextjs-b54m9m?file=components/Cookie/Cookie-A-Href.tsx" rel="nofollow noreferrer">https://stackblitz.com/edit/nextjs-b54m9m?file=components/Cookie/Cookie-A-Href.tsx</a></p>
  <ul>
  <li>component cookie-a-href is working</li>
  <li>component cookie-next-link, not working, hash added to URL, but modal is not shown in a browser,</li>
  </ul>
  <p>How I can fix the second component?</p>