import { Space, Tag, Tooltip, Typography } from 'antd'; import { FormattedMessage } from 'umi'; import { formatUserRender } from '../../utils'; import { bpmNameFormat } from '../util'; import ProxyUser from './proxyUser'; const { Text } = Typography; export interface StaffUserProps { row: { staff?: Record[] }; horizontal?: boolean; } const StaffUser = (props: StaffUserProps) => { const { horizontal, row } = props; const { staff } = row || {}; return ( {staff?.map((user) => { const { proxyUsers, account, name, nameZh, nameEn, state } = user; const key = account || nameEn || name || nameZh; return (
{formatUserRender({ nameZh: bpmNameFormat(name || nameZh), account: key, state, })} {Boolean(proxyUsers) && ( }> )}
); })}
); }; export default StaffUser;