|
|
@@ -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",
|
|
|
+ }),
|
|
|
+ },
|
|
|
+ };
|
|
|
+};
|