In Next.js 13, some hooks and props let you access the URL params depending if your component is a client or server component.