import { useTranslation } from 'react-i18next' import PropTypes from 'prop-types' import Browser from 'webextension-polyfill' import { toast, ToastContainer } from 'react-toastify' import { useEffect } from 'react' import 'react-toastify/dist/ReactToastify.css' import { useTheme } from '../../hooks/use-theme.mjs' import { getUserConfig } from '../../config/index.mjs' const NotificationForChatGPTWeb = () => { const { t } = useTranslation() const [theme, config] = useTheme() const buttonStyle = { padding: '0 8px', border: '1px solid', borderRadius: '4px', whiteSpace: 'nowrap', cursor: 'pointer', } useEffect(() => { toast(
{t('Please keep this tab open. You can now use the web mode of ChatGPTBox')}
, { toastId: 0, updateId: 0, }, ) }, [config.themeMode, config.preferredLanguage]) return ( ) } NotificationForChatGPTWeb.propTypes = { container: PropTypes.object.isRequired, } export default NotificationForChatGPTWeb