2018-02-16 16:53:01 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
* ListHeader
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
import { FormattedMessage } from 'react-intl';
|
|
|
|
import cn from 'classnames';
|
|
|
|
|
2018-02-22 12:08:11 +01:00
|
|
|
// import InputCheckBox from 'components/InputCheckbox';
|
2018-02-16 16:53:01 +01:00
|
|
|
|
|
|
|
import styles from './styles.scss';
|
|
|
|
|
|
|
|
function ListHeader() {
|
|
|
|
const titles = [
|
|
|
|
'',
|
|
|
|
'type',
|
|
|
|
'hash',
|
|
|
|
'name',
|
|
|
|
'updated',
|
|
|
|
'size',
|
|
|
|
'related',
|
2018-02-22 12:08:11 +01:00
|
|
|
'',
|
2018-02-16 16:53:01 +01:00
|
|
|
];
|
|
|
|
return (
|
|
|
|
<li className={styles.listheaderWrapper}>
|
|
|
|
<div className={cn(styles.listHeader)}>
|
|
|
|
{titles.map((title, key) => {
|
|
|
|
if (title !== '') {
|
|
|
|
return (
|
|
|
|
<div key={key}>
|
|
|
|
<FormattedMessage id={`upload.ListHeader.${title}`} />
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
return <div key={key} />;
|
|
|
|
})}
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ListHeader;
|