content: /**
   * Created by yunzhou on 26/11/2016.
   */
  import React from 'react';
  import A from 'components/A';
  import { OverlayTrigger, Popover } from 'react-bootstrap';
  import messages from './messages';
  
  function AttendantImportpopover(props) {
    const tourId = props.tourId;
    const attendType = props.attendType;
    let title = '';
    if (attendType === 'participant') {
      title = messages.importParticipantsLink.defaultMessage;
    } else if (attendType === 'organizer') {
      title = messages.importOrganizerLink.defaultMessage;
    } else if (attendType === 'viewer') {
      title = messages.importViewersLink.defaultMessage;
    }
  
    const attendantPopover = (
      <Popover id={`add+${attendType}+_popover+${tourId}`} title={title}>
        <strong>This is tab import {attendType}</strong> Check this info.
      </Popover>
    );
    return (
      <OverlayTrigger trigger="click" placement="bottom" overlay={attendantPopover}>
        <A href="#">{title}</A>
      </OverlayTrigger>
    );
  }
  AttendantImportpopover.propTypes = {
    tourId: React.PropTypes.any,
    attendType: React.PropTypes.any,
  };
  export default AttendantImportpopover;
  