useSearchParams is a hook from the next/navigation package that allows to access and manipulate the URL's query parameters in a Next.js application.
This video shows just a quick example of useSearchParams implementation.
Gist URL: https://gist.github.com/InterTuts/ad24ed953a9f750a43bc5904467110d1