I made a Typescript class of a 'Route' with some useful functions and attributes.
In my Layout.ts class, I made an array where I declare all my routes.
Then my navbar, which is a client component takes an argument of array of routes.
However I can't use functions because the serilization from server to client don't support functions.
How do people typically design this? I guess the routes need to be defined somewhere else so they aren't rendered as server components.
Or should my navbar be a server component, from my understanding it shouldn't be..