import React, { ReactNode } from 'react'; import { Box } from '../Box'; import { Text } from '../Text'; import { ProgressBar } from '../ProgressBar'; import { SwipeButton } from '../SwipeButton'; import { CollapsibleButton, CollapsibleContent } from '../Collapsible'; import { CollapsibleProvider } from '../Collapsible/providers/context'; interface Props { currentValue: number; totalValue: number; label: string; onPress: () => void; loading: boolean; children?: ReactNode; } export const ProgressValidation = ({ currentValue, totalValue, label, onPress, loading, children, }: Props) => { return ( Llevas {currentValue} de {totalValue} productos {children && ( )} {children && ( {children} )} ); };