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

Function CommitHeader

web/src/components/ai-elements/commit.tsx:36–51  ·  view source on GitHub ↗
({
  className,
  children,
  ...props
}: CommitHeaderProps)

Source from the content-addressed store, hash-verified

34export type CommitHeaderProps = ComponentProps<typeof CollapsibleTrigger>;
35
36export 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
53export type CommitHashProps = HTMLAttributes<HTMLSpanElement>;
54

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected