import React from 'react'; import { useTranslation } from 'react-i18next'; import PropTypes from 'prop-types'; import AdminUpdateButtonRow from '../Common/AdminUpdateButtonRow'; const CustomBotWithoutProxySecretTokenSection = (props) => { const { t } = useTranslation(); const onChangeSigningSecretHandler = (signingSecretInput) => { if (props.onChangeSigningSecretHandler != null) { props.onChangeSigningSecretHandler(signingSecretInput); } }; const onChangeBotTokenHandler = (botTokenInput) => { if (props.onChangeBotTokenHandler != null) { props.onChangeBotTokenHandler(botTokenInput); } }; const updateSecretTokenHandler = () => { if (props.updateSecretTokenHandler != null) { props.updateSecretTokenHandler(); } }; return (
Database
onChangeSigningSecretHandler(e.target.value)} />Environment variables
{/* eslint-disable-next-line react/no-danger */}
Database
onChangeBotTokenHandler(e.target.value)} />Environment variables
{/* eslint-disable-next-line react/no-danger */}