import React from 'react'; import { FormattedMessage } from 'react-intl'; import { spring } from 'react-motion'; import { HStack, Icon, Stack, Text } from 'soapbox/components/ui'; import Motion from 'soapbox/features/ui/util/optional_motion'; interface IUploadProgress { /** Number between 0 and 1 to represent the percentage complete. */ progress: number, } /** Displays a progress bar for uploading files. */ const UploadProgress: React.FC = ({ progress }) => { return (
{({ width }) => (
) }
); }; export default UploadProgress;