Implement reusable utils to query for permissions from openedx-authz on frontend MFEs.
The utils should include:
- A hook to query for permissions (useUserPermissions), this hook should cache the query result to minimize calls to the backend.
- Types for handling permissions
- Documentation on how to use and best practices.
Most of this was already implemented directly into frontend-app-authoring, see: openedx/frontend-app-authoring#2685
This implementation should be extracted to frontend-base and be reused across MFEs.