stream-chat-react
Version:
React components to create chat conversations or livestream style chat
7 lines (6 loc) • 417 B
JavaScript
import React from 'react';
import { useTranslationContext } from '../../context';
export const StopAIGenerationButton = ({ onClick, ...restProps }) => {
const { t } = useTranslationContext();
return (React.createElement("button", { "aria-label": t('aria/Stop AI Generation'), className: 'str-chat__stop-ai-generation-button', "data-testid": 'stop-ai-generation-button', onClick: onClick, ...restProps }));
};