mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 13:52:43 +08:00
23 lines
403 B
TypeScript
23 lines
403 B
TypeScript
interface TrajectoryActionButtonProps {
|
|
testId?: string;
|
|
onClick: () => void;
|
|
icon: React.ReactNode;
|
|
}
|
|
|
|
export function TrajectoryActionButton({
|
|
testId,
|
|
onClick,
|
|
icon,
|
|
}: TrajectoryActionButtonProps) {
|
|
return (
|
|
<button
|
|
type="button"
|
|
data-testid={testId}
|
|
onClick={onClick}
|
|
className="button-base p-1 hover:bg-neutral-500"
|
|
>
|
|
{icon}
|
|
</button>
|
|
);
|
|
}
|