import React from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' const FileItem = props => { const iconStatus = (() => { switch (props.status) { case 'current': return 'fa fa-cogs current-color' case 'validated': return 'fa fa-check validated-color' case 'canceled': return 'fa fa-ban canceled-color' case 'outdated': return '' // @TODO } })() return (
{ props.name }
) } export default FileItem FileItem.propTypes = { type: PropTypes.string.isRequired, status: PropTypes.string.isRequired, customClass: PropTypes.string, name: PropTypes.string, onClickItem: PropTypes.func } FileItem.defaultProps = { name: '', customClass: '', onClickItem: () => {} }