I'm working on a Next.js 13 project where I have a JSON file containing various albums. Each album entry includes a URL for its cover image. In my application, there's a specific page dedicated to displaying these albums along with their artwork.
At the top of this page, I've implemented filter buttons allowing users to sort albums by genre. To manage the selected genre dynamically on the client-side, I'm using useState and the "use client" directive. So far, this setup works as intended.
However, I'm facing a challenge: I'd like to add the placeholder blurDataURL for each image sourced from the JSON file. I tried using plaiceholder.co, but it didn't seem to work.
Could anyone guide me on how to generate the blurDataURL for these images efficiently?