React AuthenticationGuard with RBAC

I have followed this guide to protect some web pages of a react app using the react router.

What I cannot find is how to use RBAC to control which pages could see each user based on roles/permissions.

I think the question is the same as this one, but I don’t see how this could be achieved.

In the blog post mentioned it only differentiate between logged and not logged users.

I was hopping to see some option in WithAuthenticationRequiredOptions.

Thanks