import {Flex, Text} from '@gravity-ui/uikit'; import {getProgressStyle} from './progressUtils'; import type {ProgressContainerProps} from './types'; export function ProgressContainer({ children, displayText, withCapacityUsage = false, className, width, }: ProgressContainerProps) { const progressStyle = getProgressStyle(width); return (
{children}
{withCapacityUsage && displayText && ( {displayText} )}
); }