/
githubmirror
/
ydb-embedded-ui
Обзор
Документация
Войти
/
githubmirror
/
ydb-embedded-ui
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/components/ProgressWrapper/ProgressContainer.tsx
25 строк
697 B
Anton Standrik
feat: redesign Memory section (#2627)
29 июл 2025, 14:32
Не верифицирован
29 июл 2025, 14:32
437a81c
Код
Авторство
О чём код?
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 ( <Flex alignItems="center" gap="2" className={className}> <div style={progressStyle}>{children}</div> {withCapacityUsage && displayText && ( <Text variant="body-1" color="secondary"> {displayText} </Text> )} </Flex> ); }