<commit_before>
// CSS
import styles from './style.css';

import React from 'react';
import PureComponent from 'react-pure-render/component';

import config from '../../../config';
import IconButton from '../../IconButton';

class ControlBtn extends PureComponent {

    constructor() {
        super();
        this._onDeleteSurveyClick = this._onDeleteSurveyClick.bind(this);
        this._onCopySurveyClick = this._onCopySurveyClick.bind(this);
        this._onAddSurveyClick = this._onAddSurveyClick.bind(this);
        this._onPreviewSurveyClick = this._onPreviewSurveyClick.bind(this);
        this._onReportSurveyClick = this._onReportSurveyClick.bind(this);
    }

    render() {
        const { selectedSurveys, selectedUser } = this.props;
        const btnsData = [
            { id: 'createBtn', string: 'Create Survey', img: '', func: this._onAddSurveyClick },
            { id: 'shareBtn', string: 'Share', img: 'share', func: this._onPreviewSurveyClick },
            { id: 'reportBtn', string: 'Report', img: 'report', func: this._onReportSurveyClick },
            { id: 'copyBtn', string: 'Duplicate', img: 'delete', func: this._onCopySurveyClick },<commit_msg>Use report image for duplicate button temporarily<commit_after>
// CSS
import styles from './style.css';

import React from 'react';
import PureComponent from 'react-pure-render/component';

import config from '../../../config';
import IconButton from '../../IconButton';

class ControlBtn extends PureComponent {

    constructor() {
        super();
        this._onDeleteSurveyClick = this._onDeleteSurveyClick.bind(this);
        this._onCopySurveyClick = this._onCopySurveyClick.bind(this);
        this._onAddSurveyClick = this._onAddSurveyClick.bind(this);
        this._onPreviewSurveyClick = this._onPreviewSurveyClick.bind(this);
        this._onReportSurveyClick = this._onReportSurveyClick.bind(this);
    }

    render() {
        const { selectedSurveys, selectedUser } = this.props;
        const btnsData = [
            { id: 'createBtn', string: 'Create Survey', img: '', func: this._onAddSurveyClick },
            { id: 'shareBtn', string: 'Share', img: 'share', func: this._onPreviewSurveyClick },
            { id: 'reportBtn', string: 'Report', img: 'report', func: this._onReportSurveyClick },
            { id: 'copyBtn', string: 'Duplicate', img: 'report', func: this._onCopySurveyClick },
{'fraction_non_alphanumeric': 0.1361737677527151, 'fraction_numerical': 0.0, 'mean_word_length': 3.3466424682395646, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1364896', 'n_tokens_mistral': 691, 'n_tokens_neox': 684, 'n_words': 160}