/**
*
* Table
*
*/
import React from 'react';
import TableHeader from 'components/TableHeader';
import TableRow from 'components/TableRow';
import styles from './styles.scss';
class Table extends React.Component { // eslint-disable-line react/prefer-stateless-function
render() {
const tableRows = this.props.records.map((record, key) => {
const destination = this.props.route.path.replace(':slug', this.props.routeParams.slug) + '/' + record.id;
return (