import type { FunctionComponent } from 'react'; import { Alert, AlertActionCloseButton, AlertProps } from '@patternfly/react-core'; export interface ChatbotAlert extends AlertProps { /** Callback for when close button is clicked; if none is provided, there will be no way to dismiss the alert */ onClose?: () => void; } export const ChatbotAlert: FunctionComponent = ({ variant = 'info', title, children = '', onClose, ...props }: ChatbotAlert) => (
})} {...props} > {children}
); export default ChatbotAlert;