import classNames from 'classnames'; import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; // import SensitiveButtonContainer from '../containers/sensitive_button_container'; import UploadProgress from '../components/upload-progress'; import UploadContainer from '../containers/upload_container'; export default class UploadForm extends ImmutablePureComponent { static propTypes = { mediaIds: ImmutablePropTypes.list.isRequired, }; render() { const { mediaIds } = this.props; const classes = classNames('compose-form__uploads-wrapper', { 'contains-media': mediaIds.size !== 0, }); return (
{mediaIds.map(id => ( ))}
{/* {!mediaIds.isEmpty() && } */}
); } }