import React from 'react'; import { Box } from '../Box'; import { colors, Theme } from '../../theme/theme'; import type { BackgroundColorProps, ResponsiveValue } from '@shopify/restyle'; import { Bar } from './Bar'; import { Flag } from 'phosphor-react-native'; export type Props = BackgroundColorProps & { height?: number; innerColor?: ResponsiveValue; marginVertical?: ResponsiveValue; percent: number; text?: string; withGoal?: boolean; }; export const ProgressBar = ({ backgroundColor = 'gray25', height = 16, innerColor = 'green', percent, withGoal = false, ...rest }: Props) => { if (withGoal) { return ( = 100 ? innerColor : backgroundColor} borderRadius={50} padding={'spacing-xxs'} > ); } return ; };