1 import React from 'react';
2 import { Button, Container } from 'react-bootstrap';
3 import { useTranslation } from 'react-i18next';
5 import Icon from '../components/common/Icon';
6 import Controls from '../components/discord-bot/Controls';
8 const authEndpoint = 'https://discord.com/oauth2/authorize';
9 const clientId = process.env.MIX_DISCORD_CLIENT_ID;
11 const DiscordBot = () => {
12 const { t } = useTranslation();
15 <h1>{t('discordBot.heading')}</h1>
17 <span className="button-bar">
19 href={`${authEndpoint}?client_id=${clientId}&scope=bot%20applications.commands`}
23 <Icon.DISCORD title="" />
25 {t('discordBot.invite')}
29 <h2>{t('discordBot.controls')}</h2>
34 export default DiscordBot;