1 import React from 'react';
2 import { Button, Container } from 'react-bootstrap';
3 import { Helmet } from 'react-helmet';
4 import { useTranslation } from 'react-i18next';
6 import Icon from '../components/common/Icon';
7 import Controls from '../components/discord-bot/Controls';
9 const authEndpoint = 'https://discord.com/oauth2/authorize';
10 const clientId = process.env.MIX_DISCORD_CLIENT_ID;
12 export const Component = () => {
13 const { t } = useTranslation();
16 <h1>{t('discordBot.heading')}</h1>
18 <title>{t('discordBot.heading')}</title>
21 <span className="button-bar">
23 href={`${authEndpoint}?client_id=${clientId}&scope=bot%20applications.commands`}
27 <Icon.DISCORD title="" />
29 {t('discordBot.invite')}
33 <h2>{t('discordBot.controls')}</h2>