import type { ButtonHTMLAttributes } from "react";
import "@shared/components/ChatFABButton.css";
export interface ChatFABButtonProps extends ButtonHTMLAttributes {
/** Shows a green pulse dot to indicate the agent is actively working. */
isLoading?: boolean;
/** Shows a green tick badge to indicate an unread result is waiting. */
showTick?: boolean;
}
export function ChatFABButton({
isLoading = false,
showTick = false,
className,
...rest
}: ChatFABButtonProps) {
const classes = [
"chat-fab-btn",
isLoading ? "chat-fab-btn--loading" : "",
showTick ? "chat-fab-btn--tick" : "",
className ?? "",
]
.filter(Boolean)
.join(" ");
return (
);
}