| 179 | const handleActionsKeyDown = (e: React.KeyboardEvent) => e.stopPropagation(); |
| 180 | |
| 181 | export 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 | |
| 199 | export type CommitCopyButtonProps = ComponentProps<typeof Button> & { |
| 200 | hash: string; |