import { Image, View } from '@tarojs/components' import TagCertificated from "@/components/tag-certificated"; import IconCertificateColor from "@/components/icon/icon-certificate-color"; import { TAgentDetail } from '@/types/agent'; import { AvatarMedia } from '@/components/AvatarMedia'; interface IProps { agent: TAgentDetail|null haveBg: boolean } export default ({haveBg, agent}:IProps) => { const nameStyle = haveBg ? 'text-white' : 'text-black' const entStyle = haveBg ? 'text-white' : 'text-black-45' const renderContent = () => { return <> {agent?.name} {agent?.isEnt && } {agent?.entName && {agent?.entName} } // return <> // // // // // // {agent?.name} // {agent?.position} // // // // {agent?.entName} // // {agent?.isEnt && } // // // } return ( {renderContent()} ) }