Is it a good idea to pass the route to a Component? - TanStack