import PropTypes from 'prop-types'; import React from 'react'; import episodeEntities from 'Album/episodeEntities'; import EpisodeTitleLink from 'Album/EpisodeTitleLink'; import EpisodeStatusConnector from 'Album/EpisodeStatusConnector'; import EpisodeSearchCellConnector from 'Album/EpisodeSearchCellConnector'; import ArtistNameLink from 'Artist/ArtistNameLink'; import RelativeDateCellConnector from 'Components/Table/Cells/RelativeDateCellConnector'; import TableRow from 'Components/Table/TableRow'; import TableRowCell from 'Components/Table/Cells/TableRowCell'; import TableSelectCell from 'Components/Table/Cells/TableSelectCell'; import styles from './MissingRow.css'; function MissingRow(props) { const { id, // trackFileId, artist, releaseDate, albumType, title, isSelected, columns, onSelectedChange } = props; return ( { columns.map((column) => { const { name, isVisible } = column; if (!isVisible) { return null; } if (name === 'artist.sortName') { return ( ); } // if (name === 'episode') { // return ( // // // // ); // } if (name === 'albumTitle') { return ( ); } if (name === 'albumType') { return ( {albumType} ); } if (name === 'releaseDate') { return ( ); } // if (name === 'status') { // return ( // // // // ); // } if (name === 'actions') { return ( ); } return null; }) } ); } MissingRow.propTypes = { id: PropTypes.number.isRequired, // trackFileId: PropTypes.number, artist: PropTypes.object.isRequired, releaseDate: PropTypes.string.isRequired, albumType: PropTypes.string.isRequired, title: PropTypes.string.isRequired, isSelected: PropTypes.bool, columns: PropTypes.arrayOf(PropTypes.object).isRequired, onSelectedChange: PropTypes.func.isRequired }; export default MissingRow;