MCPcopy Create free account
hub / github.com/MagicCube/agentara / CommitFileDeletions

Function CommitFileDeletions

web/src/components/ai-elements/commit.tsx:426–449  ·  view source on GitHub ↗
({
  count,
  className,
  children,
  ...props
}: CommitFileDeletionsProps)

Source from the content-addressed store, hash-verified

424};
425
426export 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

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected