Hey,
I’m working on a Navbar component, so I declared a global variable to list my routes.
const links = [
{
link: routes.notifications(),
label: 'Notifications',
icon: IconBellRinging,
},
...
]
However, it seems that routes.notifications()
isn’t defined at import time. Any recommendations for what I should do instead? For now I just moved it inside the function component.