import clsx from 'clsx'; import React from 'react'; import { spring } from 'react-motion'; import Motion from 'soapbox/features/ui/util/optional-motion'; interface IProgressBar { /** Number between 0 and 1 to represent the percentage complete. */ progress: number /** Height of the progress bar. */ size?: 'sm' | 'md' } /** A horizontal meter filled to the given percentage. */ const ProgressBar: React.FC = ({ progress, size = 'md' }) => (
{({ width }) => (
)}
); export default ProgressBar;