1 import React from 'react';
2 import { Alert, Container } from 'react-bootstrap';
3 import { Helmet } from 'react-helmet';
4 import { useTranslation } from 'react-i18next';
6 import Controls from '../components/twitch-bot/Controls';
7 import { mayManageTwitchBot } from '../helpers/permissions';
8 import { useUser } from '../hooks/user';
10 export const Component = () => {
11 const { t } = useTranslation();
12 const { user } = useUser();
15 <h1>{t('twitchBot.heading')}</h1>
17 <title>{t('twitchBot.heading')}</title>
19 {mayManageTwitchBot(user) ? <>
20 <h2>{t('twitchBot.controls')}</h2>
23 <Alert variant="info">
24 {t('twitchBot.noManagePermission')}