import PropTypes from 'prop-types'; import React from 'react'; import { icons } from 'Helpers/Props'; import Icon from 'Components/Icon'; import VirtualTableRowCell from 'Components/Table/Cells/TableRowCell'; import styles from './MovieStatusCell.css'; function MovieStatusCell(props) { const { className, status, component: Component, ...otherProps } = props; return ( { status === 'announced' ? : null } { status === 'inCinemas' ? : null } { status === 'released' ? : null } ); } MovieStatusCell.propTypes = { className: PropTypes.string.isRequired, status: PropTypes.string.isRequired, component: PropTypes.elementType }; MovieStatusCell.defaultProps = { className: styles.status, component: VirtualTableRowCell }; export default MovieStatusCell;