/**
 * 会话中的关闭按钮
 */
import React, { Component } from 'react';
import { connect } from 'dva';
import {
  Pagination,
  Drawer,
  Tooltip,
  Icon,
  Row,
  Col,
  Avatar,
  message
} from 'antd';
export default class Close extends Component {
  constructor(props) {
    super(props);
    this.state = {
      //   visible: props.visible
    };
  }

  componentDidMount() {}
  componentWillReceiveProps(nextProps) {
    this.setState({
      //   visible: nextProps.visible
    });
  }
  getFriendList() {
    // tim.getFriendList().then(({ data: friendList }) => {
    //   //   this.$store.commit('upadteFriendList', friendList)
    // });
  }
  render() {
    return (
      <Icon
        type="close"
        style={{ position: 'absolute', right: '10px' }}
        onClick={() => {
          this.props.closeClick();
        }}
      />
    );
  }
}
