rewriting ViewPermissions as a Component