import React from 'react'; import { FormattedMessage } from 'react-intl'; import spring from 'react-motion/lib/spring'; import Icon from 'soapbox/components/icon'; import { useAppSelector } from 'soapbox/hooks'; import Motion from '../../ui/util/optional_motion'; const UploadProgress = () => { const active = useAppSelector((state) => state.compose.get('is_uploading')); const progress = useAppSelector((state) => state.compose.get('progress')); if (!active) { return null; } return (
{({ width }) =>
}
); }; export default UploadProgress;