Function
CommitHeader
({
className,
children,
...props
}: CommitHeaderProps)
Source from the content-addressed store, hash-verified
| 34 | export type CommitHeaderProps = ComponentProps<typeof CollapsibleTrigger>; |
| 35 | |
| 36 | export const CommitHeader = ({ |
| 37 | className, |
| 38 | children, |
| 39 | ...props |
| 40 | }: CommitHeaderProps) => ( |
| 41 | <CollapsibleTrigger asChild {...props}> |
| 42 | <div |
| 43 | className={cn( |
| 44 | "group flex cursor-pointer items-center justify-between gap-4 p-3 text-left transition-colors hover:opacity-80", |
| 45 | className |
| 46 | )} |
| 47 | > |
| 48 | {children} |
| 49 | </div> |
| 50 | </CollapsibleTrigger> |
| 51 | ); |
| 52 | |
| 53 | export type CommitHashProps = HTMLAttributes<HTMLSpanElement>; |
| 54 | |
Callers
nothing calls this directly
Tested by
no test coverage detected