import React from 'react'; import { ButtonGroup } from 'react-bootstrap'; import Link from './Link'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as Actions from '../actions'; import shortid from 'shortid'; // CSS import 'react-select/dist/react-select.css'; class QueryLink extends React.Component { popTab() { const qe = { id: shortid.generate(), title: this.props.query.title, dbId: this.props.query.dbId, autorun: false, sql: this.props.query.sql, }; this.props.actions.addQueryEditor(qe); } render() { return (