visuddhinanda 3 лет назад
Родитель
Сommit
8338b3a057
1 измененных файлов с 31 добавлено и 0 удалено
  1. 31 0
      dashboard/src/components/studio/table.ts

+ 31 - 0
dashboard/src/components/studio/table.ts

@@ -41,3 +41,34 @@ export const PublicityValueEnum = () => {
 		},
 	};
 };
+
+export const RoleValueEnum = () => {
+	const intl = useIntl();
+	return {
+		all: {
+			text: intl.formatMessage({
+				id: "tables.role.all",
+			}),
+		},
+		owner: {
+			text: intl.formatMessage({
+				id: "tables.role.owner",
+			}),
+		},
+		manager: {
+			text: intl.formatMessage({
+				id: "tables.role.manager",
+			}),
+		},
+		editor: {
+			text: intl.formatMessage({
+				id: "tables.role.editor",
+			}),
+		},
+		member: {
+			text: intl.formatMessage({
+				id: "tables.role.member",
+			}),
+		},
+	};
+};