Thanks for reaching out.
You can render the menu from the backend itself based on the logged-in user role. We have also provided one example to load the menu from the backend, you can mimic the same as per your requirement.
Check here about loading the menu from the backend: full-version/src/menu-items/widget.tsx
Hope that answers your query. Feel feel to reach out again if any further questions.