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

Function CommitActions

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

Source from the content-addressed store, hash-verified

179const handleActionsKeyDown = (e: React.KeyboardEvent) => e.stopPropagation();
180
181export const CommitActions = ({
182 className,
183 children,
184 ...props
185}: CommitActionsProps) => (
186 // biome-ignore lint/a11y/noNoninteractiveElementInteractions: stopPropagation required for nested interactions
187 // biome-ignore lint/a11y/useSemanticElements: fieldset doesn't fit this UI pattern
188 <div
189 className={cn("flex items-center gap-1", className)}
190 onClick={handleActionsClick}
191 onKeyDown={handleActionsKeyDown}
192 role="group"
193 {...props}
194 >
195 {children}
196 </div>
197);
198
199export type CommitCopyButtonProps = ComponentProps<typeof Button> & {
200 hash: string;

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected