({
isCompleted,
isCurrent,
onClick,
})
| 27 | } |
| 28 | |
| 29 | const ProgressCircle: FC<ProgressCircleProps> = ({ |
| 30 | isCompleted, |
| 31 | isCurrent, |
| 32 | onClick, |
| 33 | }) => { |
| 34 | return ( |
| 35 | <div |
| 36 | className="flex h-4 w-4 cursor-pointer flex-row items-center justify-center align-middle" |
| 37 | onClick={onClick} |
| 38 | > |
| 39 | {isCurrent && ( |
| 40 | <div className="absolute h-4 w-4 rounded-full bg-blue-200" /> |
| 41 | )} |
| 42 | { |
| 43 | <div |
| 44 | className={clsx( |
| 45 | "absolute h-2 w-2 rounded-full", |
| 46 | isCompleted || isCurrent ? "bg-blue-500" : "bg-gray-200", |
| 47 | )} |
| 48 | /> |
| 49 | } |
| 50 | </div> |
| 51 | ); |
| 52 | }; |
| 53 | |
| 54 | interface ProgressCirclesProps { |
| 55 | currentStep: number; |
nothing calls this directly
no outgoing calls
no test coverage detected