Different image in layout based on route?
Unanswered
Hoary Redpoll posted this in #help-forum
Original message was deleted.
2 Replies
Havana
You could determine it based on the pathname which you can get from importing „usePathname“ from „next/navigation“ and then using it like this:
const pathname = usePathname(). Based on the pathname you could determine if the user is on the login or signup page and change the image accordinglyOriginal message was deleted
Large garden bumble bee
Please mark the solution