// ============================================================================ // Chatbot Footer - Message Bar - Send // ============================================================================ import type { FunctionComponent } from 'react'; // Import PatternFly components import { Button, ButtonProps, Tooltip, TooltipProps, Icon } from '@patternfly/react-core'; import { PaperPlaneIcon } from '@patternfly/react-icons/dist/esm/icons/paper-plane-icon'; export interface SendButtonProps extends ButtonProps { /** Callback for when button is clicked */ onClick: (event: React.MouseEvent) => void; /** Class Name for SendButton */ className?: string; /** Props to control the PF Tooltip component */ tooltipProps?: Omit; /** English text "Send" used in the tooltip */ tooltipContent?: string; /** Whether send button has compact styling */ isCompact?: boolean; } export const SendButton: FunctionComponent = ({ className, onClick, tooltipProps, tooltipContent = 'Send', isCompact, ...props }: SendButtonProps) => (