import Modal from 'antd/lib/modal/Modal'
import React from 'react'
function PupCode(props: { codeImg: string, callBack: (b: any) => void, visible: boolean }) {
    return <Modal
        visible={props.visible}
        onCancel={() => { props.callBack(false) }}
        footer={null}
    >
        <div>
            <h2 style={{ textAlign: 'center' }}>扫码授权</h2>
            <img src={props.codeImg} />
        </div>
    </Modal>
}

export default PupCode