+
+
+
+
Permissions
+
+ Clear Permissions
+
+
+ {permissionsList}
+
+
+
+
+
+ );
+}
+
+export default CreateRolesModal;
diff --git a/web/roles/role-utils.react.js b/web/roles/role-utils.react.js
new file mode 100644
--- /dev/null
+++ b/web/roles/role-utils.react.js
@@ -0,0 +1,54 @@
+// @flow
+
+import {
+ type UserSurfacedPermissionOption,
+ userSurfacedPermissionOptions,
+ userSurfacedPermissions,
+} from 'lib/types/thread-permission-types.js';
+import { threadTypes } from 'lib/types/thread-types-enum.js';
+import type { ThreadInfo } from 'lib/types/thread-types.js';
+
+export type ModifiedUserSurfacedPermissionOption = {
+ ...UserSurfacedPermissionOption,
+ statements: $ReadOnlyArray<{
+ +statement: string,
+ +isStatementValid: boolean,
+ +styleStatementBasedOnValidity: boolean,
+ }>,
+};
+function modifyUserSurfacedPermissionOptions(
+ threadInfo: ThreadInfo,
+): $ReadOnlyArray