import { Button, Image } from '@tarojs/components'; import classNames from 'classnames'; import { ReactElement } from 'react'; import { PREFIX } from '@/components/product-dialog/const'; import QrCode from '@/components/qr-code'; import { QrCodeType } from '@/constants/product'; interface IProps { type: QrCodeType; onClickCopy?: () => void; } export default function QrCodeContent(props: IProps) { const { type, onClickCopy } = props; let header: ReactElement | string | null = null; let describe: ReactElement | string | null = null; let footer: ReactElement | string | null = null; if (type === QrCodeType.ConnectCustomerService) { header =