access search params in a layout, consider using a Client Component with the `useSearchParams` hook or moving the logic to the page level — Prompt Temple