/* eslint-disable jsx-a11y/alt-text */
import React, { Component } from "react"
import { browser } from "src/utils"
import "./index.scss"

export default class SharePopup extends Component {
  render() {
    return (
      <div
        className="share__container"
        onClick={() => {
          if (this.props.isClose) {
            this.props.toClose()
          }
        }}
      >
        {browser.isWeixin && (
          <div className="share__row">
            <img src="https://cdn.julyedu.com/active19_1111/m/throw_icon.png" />
          </div>
        )}
        <div className="share__content">
          <p className="share__text">分享活动页到朋友圈、qq、微博分别</p>
          <div className="share__rule">
            <img
              className={"share__add2"}
              src="https://cdn.julyedu.com/active19_1111/m/add2.png"
            />
            <span>（每个平台每天一次）</span>
          </div>
        </div>
      </div>
    )
  }
}
