import PropTypes from 'prop-types'; import React, { Component } from 'react'; import IconButton from 'Components/Link/IconButton'; import SpinnerIconButton from 'Components/Link/SpinnerIconButton'; import TableRowCell from 'Components/Table/Cells/TableRowCell'; import { icons } from 'Helpers/Props'; import AlbumInteractiveSearchModalConnector from './Search/AlbumInteractiveSearchModalConnector'; import styles from './AlbumSearchCell.css'; class AlbumSearchCell extends Component { // // Lifecycle constructor(props, context) { super(props, context); this.state = { isDetailsModalOpen: false }; } // // Listeners onManualSearchPress = () => { this.setState({ isDetailsModalOpen: true }); }; onDetailsModalClose = () => { this.setState({ isDetailsModalOpen: false }); }; // // Render render() { const { albumId, albumTitle, isSearching, onSearchPress, ...otherProps } = this.props; return ( ); } } AlbumSearchCell.propTypes = { albumId: PropTypes.number.isRequired, artistId: PropTypes.number.isRequired, albumTitle: PropTypes.string.isRequired, isSearching: PropTypes.bool.isRequired, onSearchPress: PropTypes.func.isRequired }; export default AlbumSearchCell;