"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getRoleNameByTarget = void 0;
const constant_1 = require("../constant");
const getRoleNameByTarget = (target, uppercaseFirst = false) => {
    const roleNameMapWithUppercaseFirst = {
        [constant_1.ERoleCode.STAFF]: 'Nhân viên',
        [constant_1.ERoleCode.STUDENT]: 'Học sinh',
        [constant_1.ERoleCode.TEACHER]: 'Giáo viên',
        [constant_1.ERoleCode.DEPARTMENT]: 'Phòng ban',
        [constant_1.ERoleCode.PARENT]: 'Phụ huynh',
    };
    const roleNameMapWithLowercaseFirst = {
        [constant_1.ERoleCode.STAFF]: 'nhân viên',
        [constant_1.ERoleCode.STUDENT]: 'học sinh',
        [constant_1.ERoleCode.TEACHER]: 'giáo viên',
        [constant_1.ERoleCode.DEPARTMENT]: 'phòng ban',
        [constant_1.ERoleCode.PARENT]: 'phụ huynh',
    };
    return uppercaseFirst ? roleNameMapWithUppercaseFirst[target] : roleNameMapWithLowercaseFirst[target];
};
exports.getRoleNameByTarget = getRoleNameByTarget;
//# sourceMappingURL=get-role-name-by-target.js.map