content: /* eslint max-len: 0 */
  /* eslint no-unused-vars: 0 */
  import React from 'react';
  import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
  
  
  const products = [];
  
  function addProducts(quantity) {
    const startId = products.length;
    for (let i = 0; i < quantity; i++) {
      const id = startId + i;
      products.push({
        id: id,
        name: 'Item name ' + id,
        price: 2100 + i
      });
    }
  }
  
  addProducts(5);
  
  export default class FullyCustomInsertModalHeaderTable extends React.Component {
  
    createCustomModalHeader(onClose, onSave) {
      const headerStyle = {
        fontWeight: 'bold',
        fontSize: 'large',
        textAlign: 'center',
        backgroundColor: '#eeeeee'
      };
      return (
        <div className='modal-header' style={ headerStyle }>
          <h3>That is my custom header</h3>
          <button className='btn btn-info' onClick={ onClose }>Close it!</button>
        </div>
      );
    }
  
    render() {
      const options = {
        insertModalHeader: this.createCustomModalHeader
      };
      return (
        <BootstrapTable data={ products } options={ options } insertRow>
          <TableHeaderColumn dataField='id' isKey={ true }>Product ID</TableHeaderColumn>
          <TableHeaderColumn dataField='name'>Product Name</TableHeaderColumn>
          <TableHeaderColumn dataField='price'>Product Price</TableHeaderColumn>
        </BootstrapTable>
      );
    }
  }
  