File size: 603 Bytes
9b906ea | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | import PlayIcon from "#/icons/play-solid.svg?react";
import { cn } from "#/utils/utils";
export interface ChatResumeAgentButtonProps {
onAgentResumed: () => void;
disabled?: boolean;
}
export function ChatResumeAgentButton({
onAgentResumed,
disabled = false,
}: ChatResumeAgentButtonProps) {
return (
<button
type="button"
onClick={onAgentResumed}
data-testid="play-button"
disabled={disabled}
className={cn("cursor-pointer", disabled && "cursor-not-allowed")}
>
<PlayIcon className="block max-w-none w-4 h-4 text-current" />
</button>
);
}
|