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

Function CommitFileStatus

web/src/components/ai-elements/commit.tsx:333–349  ·  view source on GitHub ↗
({
  status,
  className,
  children,
  ...props
}: CommitFileStatusProps)

Source from the content-addressed store, hash-verified

331};
332
333export const CommitFileStatus = ({
334 status,
335 className,
336 children,
337 ...props
338}: CommitFileStatusProps) => (
339 <span
340 className={cn(
341 "font-medium font-mono text-xs",
342 fileStatusStyles[status],
343 className
344 )}
345 {...props}
346 >
347 {children ?? fileStatusLabels[status]}
348 </span>
349);
350
351export type CommitFileIconProps = ComponentProps<typeof FileIcon>;
352

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected