Function
CommitFileStatus
({
status,
className,
children,
...props
}: CommitFileStatusProps)
Source from the content-addressed store, hash-verified
| 331 | }; |
| 332 | |
| 333 | export 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 | |
| 351 | export type CommitFileIconProps = ComponentProps<typeof FileIcon>; |
| 352 | |
Callers
nothing calls this directly
Tested by
no test coverage detected