import React from 'react'; import { FormattedMessage } from 'react-intl'; import { spring } from 'react-motion'; import { HStack, Icon, Stack, Text } from 'soapbox/components/ui'; 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;