import * as Popover from '@radix-ui/react-popover'; import { ChevronDown, ChevronUp } from 'lucide-react'; import CancelledIcon from './CancelledIcon'; import FinishedIcon from './FinishedIcon'; import { Spinner } from '~/components'; import { cn } from '~/utils'; const wrapperClass = 'progress-text-wrapper text-token-text-secondary relative -mt-[0.75px] h-5 w-full leading-5'; const Wrapper = ({ popover, children }: { popover: boolean; children: React.ReactNode }) => { if (popover) { return (
{children}
); } return (
{children}
); }; export default function ProgressText({ progress, onClick, inProgressText, finishedText, authText, hasInput = true, popover = false, isExpanded = false, error = false, }: { progress: number; onClick?: () => void; inProgressText: string; finishedText: string; authText?: string; hasInput?: boolean; popover?: boolean; isExpanded?: boolean; error?: boolean; }) { const text = progress < 1 ? (authText ?? inProgressText) : finishedText; return ( ); }