import React from 'react'; import { Tag, Avatar, Descriptions, Button } from 'antd'; import ActionPanel from 'oak-frontend-base/es/components/func/actionPanel'; export default function render(props) { const { nickname, avatar, name, userState, idState, gender, idStateStr, idStateColor, userStateColor, userStateStr, mobileText, executableActions, actionDescriptions, birth, mobileUpdatable, } = props.data; const { t, onActionClick, onMobileItemClicked } = props.methods; return (<> onActionClick(action)}/>}> {avatar ? : t('unset')} {nickname || t('unset')} {name || t('unset')} {gender ? t(`user:v.gender.${gender}`) : t('unset')} {birth || t('unset')} {mobileText || t('unset')} {mobileUpdatable && } {userStateStr} {idStateStr} ); }