import { MyBetaModalFormProps, renderTextHelper } from '@/common'; import { MyModal } from '@/components/MyModal'; import { HouseOccupantsCardTypeEnum, HouseOccupantsHouseRelationEnum, HouseOccupantsRelationWithOwnerEnum, HouseOccupantsStatusEnum, } from '@/gen/Enums'; import { ProCard, ProDescriptions } from '@ant-design/pro-components'; import { Image, Space } from 'antd'; export default function OccupantShow(props: MyBetaModalFormProps) { return ( {props?.item?.name} {props?.item?.phone} {props?.item?.is_live_in ? props?.item?.move_in_date : '未入住'} {props?.item?.id_card} {props?.item?.card_front_image?.map( (res: any, index: number) => { return ( ); }, )} {props?.item?.card_back_image?.map( (res: any, index: number) => { return ( ); }, )} {props?.item?.house_relation === 'Owner' && ( {props?.item?.ownership_info?.map( (res: any, index: number) => { return ( ); }, )} )} } /> ); }