import React from 'react'; import PropTypes from 'prop-types'; import { gettext } from '../../utils/constants'; import SelectEditor from './select-editor'; const propTypes = { isTextMode: PropTypes.bool.isRequired, isEditIconShow: PropTypes.bool.isRequired, roleOptions: PropTypes.array.isRequired, currentRole: PropTypes.string.isRequired, onRoleChanged: PropTypes.func.isRequired }; class SysAdminGroupRoleEditor extends React.Component { translateRoles = (role) => { switch (role) { case 'Member': return gettext('Member'); case 'Admin': return gettext('Admin'); default: return role; } } render() { return ( ); } } SysAdminGroupRoleEditor.propTypes = propTypes; export default SysAdminGroupRoleEditor;