import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import UploadContainer from '../containers/upload_container'; import UploadProgressContainer from '../containers/upload_progress_container'; export default class UploadForm extends ImmutablePureComponent { static propTypes = { mediaIds: ImmutablePropTypes.list.isRequired, }; render () { const { mediaIds } = this.props; return ( <> {mediaIds.size > 0 && (
{mediaIds.map(id => ( ))}
)} ); } }