import React from 'react';
import './style/index';
import { localUrl } from 'cbkfe-utils';
import { mb_open } from 'cbkfe-bridge';
export default class CoopreationEntry extends React.Component {

    constructor(props) {
        super(props);
        this.state = {
            position: props.position || 'cooperation-entry-fix',
            ImgSize: props.ImgSize || 'cooperation-entry__img',
            ImageSrc: props.ImageSrc || 'https://static.caibeike.com/i/9ccabffeb34b931cfc4d62056b3d489b-uKVToy-ACAwAfghp1'
        };
    }

    render() {
        const { position, ImgSize, ImageSrc } = this.state;
        return (
            <div onClick={() => mb_open(localUrl.url('/ms/user/sponsor/joinus'))}
                className={`${position}`}
            >
                <img className={`${ImgSize}`} src={ImageSrc} />
            </div>
        );
    }
}
