import React from 'react';
import { Tag } from 'antd';
import { PlusOutlined } from '@ant-design/icons';
import styles from '../../style.less';

const InsertTag = options => {
  const showInput = () => {
    options.handleOpen();
  };

  return (
    <Tag
      className={[styles['groupBox-body--tag'], styles['groupBox-body--new']]}
      color="blue"
      onClick={showInput}
    >
      <PlusOutlined /> 添加
    </Tag>
  );
};

export default InsertTag;
