import PropTypes from 'prop-types'; import React from 'react'; import padNumber from 'Utilities/Number/padNumber'; import Label from 'Components/Label'; import TableRow from 'Components/Table/TableRow'; import TableRowCell from 'Components/Table/Cells/TableRowCell'; import TableSelectCell from 'Components/Table/Cells/TableSelectCell'; import TrackQuality from 'Album/TrackQuality'; function TrackFileEditorRow(props) { const { id, trackNumber, relativePath, language, quality, isSelected, onSelectedChange } = props; return ( {padNumber(trackNumber, 2)} {relativePath} ); } TrackFileEditorRow.propTypes = { id: PropTypes.number.isRequired, trackNumber: PropTypes.string.isRequired, relativePath: PropTypes.string.isRequired, language: PropTypes.object.isRequired, quality: PropTypes.object.isRequired, isSelected: PropTypes.bool, onSelectedChange: PropTypes.func.isRequired }; export default TrackFileEditorRow;