import React, { useState } from 'react'; import Styles from './web.pc.module.less'; import { Button, List, Modal, Tag, Input, Radio } from 'antd'; import MyAvatar from '../avatar'; import OakIcon from 'oak-frontend-base/es/components/icon'; const PrimaryColor = getComputedStyle(document.documentElement).getPropertyValue('--oak-color-primary'); const WarningColor = getComputedStyle(document.documentElement).getPropertyValue('--oak-color-warning'); const ErrorColor = getComputedStyle(document.documentElement).getPropertyValue('--oak-color-error'); const SuccessColor = getComputedStyle(document.documentElement).getPropertyValue('--oak-color-success'); const UserStateColor = { normal: PrimaryColor, merged: WarningColor, shadow: WarningColor, disabled: ErrorColor, }; const IdStateColor = { unverified: WarningColor, verifying: PrimaryColor, verified: SuccessColor, }; export default function Render(props) { const { nameText, mobileText, userId, nickname, name, idState, userState, gender, showLogout } = props.data; const { t, logout, navigateTo, updateAttribute } = props.methods; const [updateAttr, setUpdateAttr] = useState(undefined); const [updateValue, setUpdateValue] = useState(undefined); if (!userId) { return (