Files
SweetHome/app/enums/UserRole.js
Rahaf 71b1a71904
Some checks failed
Build frontend / build (push) Failing after 1m20s
Delete admin
2026-06-10 19:50:49 +03:00

25 lines
533 B
JavaScript

/**
* UserRole Enum
* User account roles in the system
* Derived from JWT token claims
*/
const UserRole = Object.freeze({
GUEST: 'guest',
CUSTOMER: 'customer',
OWNER: 'owner',
});
const UserRoleLabels = Object.freeze({
[UserRole.GUEST]: 'زائر',
[UserRole.CUSTOMER]: 'مستأجر',
[UserRole.OWNER]: 'مالك عقار',
});
const UserRoleColors = Object.freeze({
[UserRole.GUEST]: 'gray',
[UserRole.CUSTOMER]: 'blue',
[UserRole.OWNER]: 'amber',
});
export { UserRole, UserRoleLabels, UserRoleColors };