Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
import * as React from "react";
import { cn } from "../lib/cn";
export interface RowAction {
icon: React.ComponentType<{ className?: string }>;
label: string;
href: string;
}
interface RowActionsProps {
actions: RowAction[];
className?: string;
}
export function RowActions({ actions, className }: RowActionsProps) {
return (
<div className={cn("flex items-center gap-1", className)}>
{actions.map((action) => (
<a
key={action.label}
href={action.href}
title={action.label}
// The text is hidden below lg, leaving an icon-only link whose only
// name was a title attribute — which screen readers do not reliably
// announce and touch users never see.
aria-label={action.label}
className="inline-flex items-center gap-1 rounded px-1.5 py-1 text-[10px] text-[var(--color-text-tertiary)] hover:text-[var(--color-accent-primary)] hover:bg-[var(--color-bg-elevated)] transition-colors"
>
<action.icon className="h-3 w-3" />
<span className="hidden lg:inline">{action.label}</span>
</a>
))}
</div>
);
}