import React from 'react'; import { useTranslation } from 'react-i18next'; import AccessTokenSettings from './AccessTokenSettings'; import OfficialBotSettings from './CustomBotNonProxySettings'; import CustomBotNonProxySettings from './CustomBotNonProxySettings'; import CustomBotWithProxySettings from './CustomBotWithProxySettings'; const SlackIntegration = () => { const handleBotTypeSelect = (e) => { console.log(e.target.value); }; // const selectedBotType = 'official-bot'; const selectedBotType = 'custom-bot-non-proxy'; // const selectedBotType = 'custom-bot-with-proxy'; let settingsComponent = ''; switch (selectedBotType) { case 'custom-bot-non-proxy': settingsComponent = ; break; case 'custom-bot-with-proxy': settingsComponent = ; break; default: settingsComponent = ; break; } return ( <>

Access Token

{settingsComponent} ); } export default SlackIntegration;