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'; interface IProps { size?: 'mini'|'large' agent: TAgentDetail|null } export default ({size='large', agent}:IProps) => { const renderContent = () => { if(size === 'mini'){ return <> {agent?.name} {agent?.isEnt && } {agent?.entId && {agent?.entName} } } return <> {agent?.name} {agent?.position} {agent?.entName} {agent?.isEnt && } } return ( {renderContent()} ) }