Function
CommitFileDeletions
({
count,
className,
children,
...props
}: CommitFileDeletionsProps)
Source from the content-addressed store, hash-verified
| 424 | }; |
| 425 | |
| 426 | export const CommitFileDeletions = ({ |
| 427 | count, |
| 428 | className, |
| 429 | children, |
| 430 | ...props |
| 431 | }: CommitFileDeletionsProps) => { |
| 432 | if (count <= 0) { |
| 433 | return null; |
| 434 | } |
| 435 | |
| 436 | return ( |
| 437 | <span |
| 438 | className={cn("text-red-600 dark:text-red-400", className)} |
| 439 | {...props} |
| 440 | > |
| 441 | {children ?? ( |
| 442 | <> |
| 443 | <MinusIcon className="inline-block size-3" /> |
| 444 | {count} |
| 445 | </> |
| 446 | )} |
| 447 | </span> |
| 448 | ); |
| 449 | }; |
Callers
nothing calls this directly
Tested by
no test coverage detected