// Package imports. import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; // Components. import ComposerUploadFormItem from './item'; import ComposerUploadFormProgress from './progress'; // The component. export default function ComposerUploadForm ({ intl, media, onChangeDescription, onOpenFocalPointModal, onRemove, progress, uploading, handleRef, }) { const computedClass = classNames('composer--upload_form', { uploading }); // The result. return (
{uploading ? : null} {media ? (
{media.map(item => ( ))}
) : null}
); } // Props. ComposerUploadForm.propTypes = { intl: PropTypes.object.isRequired, media: ImmutablePropTypes.list, onChangeDescription: PropTypes.func.isRequired, onRemove: PropTypes.func.isRequired, progress: PropTypes.number, uploading: PropTypes.bool, handleRef: PropTypes.func, };