import React, { useState } from 'react';
import AccessTokenSettings from './AccessTokenSettings';
import OfficialBotSettings from './OfficialBotSettings';
import CustomBotWithoutProxySettings from './CustomBotWithoutProxySettings';
import CustomBotWithProxySettings from './CustomBotWithProxySettings';
import ConfirmBotChangeModal from './ConfirmBotChangeModal';
const SlackIntegration = () => {
const [currentBotType, setCurrentBotType] = useState(null);
const [selectedBotType, setSelectedBotType] = useState(null);
const handleBotTypeSelect = (clickedBotType) => {
if (clickedBotType === currentBotType) {
return;
}
if (currentBotType === null) {
setCurrentBotType(clickedBotType);
return;
}
setSelectedBotType(clickedBotType);
};
const handleCancelBotChange = () => {
setSelectedBotType(null);
};
const changeCurrentBotSettings = () => {
setCurrentBotType(selectedBotType);
setSelectedBotType(null);
};
let settingsComponent = null;
switch (currentBotType) {
case 'official-bot':
settingsComponent =
This is a wider card with supporting text below as a natural lead-in to additional content.
This is a wider card with supporting text below as a natural lead-in to additional content.
This is a wider card with supporting text below as a natural lead-in to additional content.