mirror of
https://github.com/strapi/strapi.git
synced 2025-11-12 08:08:05 +00:00
28 lines
527 B
JavaScript
28 lines
527 B
JavaScript
/**
|
|
*
|
|
* TableHeader
|
|
*
|
|
*/
|
|
|
|
import React from 'react';
|
|
|
|
import styles from './styles.scss';
|
|
|
|
class TableHeader extends React.Component { // eslint-disable-line react/prefer-stateless-function
|
|
render() {
|
|
const headers = this.props.headers.map((header, i) => (<th key={i}>{header.label}</th>));
|
|
|
|
return (
|
|
<thead className={styles.tableHeader}>
|
|
<tr className={styles.tableHeader}>
|
|
<th>ID</th>
|
|
{headers}
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default TableHeader;
|