import { Image } from 'antd'
// import { Assembly } from './AssemblyDetail'

export enum Assembly {
  FORM = 'form', // 表单
  COSTPROFILE = 'costProfile', // 造价文件
  DATAPROFILE = 'dataProfile' // 资料清单
}

export const ImageUrlMap = {
  [Assembly.FORM]: {
    url: 'https://wc-assets.oss-cn-guangzhou.aliyuncs.com/images/component-preview/matter_form.png'
  },
  [Assembly.COSTPROFILE]: {
    url: 'https://wc-assets.oss-cn-guangzhou.aliyuncs.com/images/component-preview/matter_dataProfile.png'
  },
  [Assembly.DATAPROFILE]: {
    url: 'https://wc-assets.oss-cn-guangzhou.aliyuncs.com/images/component-preview/matter_form.png'
  }
}

const ImageModal = ({ imageUrl }) => {
  return (
    <div>
      <Image width={1000} src={ImageUrlMap[imageUrl].url} />
    </div>
  )
}

export default ImageModal
