Render a component when all the permissions match

If all the permissions in the userPermissions array match the requiredPermissions, the component is rendered.