import React from 'react'; import { Box } from '../Box'; import { Text } from '../Text'; import { useTheme } from '../../theme/ThemeProvider'; import { Normalize } from '../../utils/normalize'; import type { Props } from '.'; export const Bar = ({ backgroundColor, height, innerColor, marginVertical, percent, text, }: Props) => { const { fonts } = useTheme(); return ( = 100 ? 100 + '%' : percent + '%'} height={'100%'} left={0} borderRadius={50} backgroundColor={innerColor} /> {text} ); };