OfficialBotSettings.jsx 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import React from 'react';
  2. import { useTranslation } from 'react-i18next';
  3. import OfficialBotSettingsAccordion from './OfficialbotSettingsAccordion';
  4. import CustomBotWithProxyIntegrationCard from './CustomBotWithProxyIntegrationCard';
  5. const OfficialBotSettings = () => {
  6. const { t } = useTranslation();
  7. return (
  8. <>
  9. <h2 className="admin-setting-header">{t('admin:slack_integration.official_bot_integration')}</h2>
  10. {/* TODO delete tmp props */}
  11. <CustomBotWithProxyIntegrationCard
  12. growiApps={
  13. [
  14. { name: 'siteName1', active: true },
  15. { name: 'siteName2', active: false },
  16. { name: 'siteName3', active: false },
  17. ]
  18. }
  19. slackWorkSpaces={
  20. [
  21. { name: 'wsName1', active: true },
  22. { name: 'wsName2', active: false },
  23. ]
  24. }
  25. isSlackScopeSet
  26. />
  27. <h2 className="admin-setting-header">{t('admin:slack_integration.official_bot_settings')}</h2>
  28. <div className="my-5 mx-3">
  29. <OfficialBotSettingsAccordion />
  30. </div>
  31. </>
  32. );
  33. };
  34. export default OfficialBotSettings;