{"size": 440, "ext": "js", "max_stars_repo_path": "src/DeleteButton.js", "max_stars_repo_name": "PSilling/StudentHubUIDevelopment", "max_stars_repo_stars_event_min_datetime": "2017-05-26T18:52:36.000Z", "max_stars_repo_stars_event_max_datetime": "2017-05-26T18:52:36.000Z", "max_issues_repo_path": "src/DeleteButton.js", "max_issues_repo_name": "PSilling/StudentHubUIDevelopment", "max_issues_repo_issues_event_min_datetime": "2017-04-01T18:16:23.000Z", "max_issues_repo_issues_event_max_datetime": "2017-04-09T09:41:24.000Z", "max_forks_repo_path": "src/DeleteButton.js", "max_forks_repo_name": "PSilling/StudentHubUIDevelopment", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 6, "max_forks_count": null, "avg_line_length": 25.8823529412, "max_line_length": 93, "alphanum_fraction": 0.675}
import React, { Component } from 'react';
import IconButton from 'react-toolbox/lib/button/IconButton.js';

/**
 * Renders a ContentTable delete IconButton.
 * @param deleteHandler() defines the function to call onClick
 */
class DeleteButton extends Component {
  render() {
    return(
      <IconButton onClick={() => this.props.deleteHandler()} icon="delete" label="Delete" />
    );
  }
}

export default DeleteButton;
