1 import React from 'react';
2 import { Container, Nav, Navbar } from 'react-bootstrap';
3 import { LinkContainer } from 'react-router-bootstrap';
4 import { useLocation } from 'react-router-dom';
5 import { useTranslation } from 'react-i18next';
7 import LanguageSwitcher from './LanguageSwitcher';
8 import User from './User';
9 import Icon from '../components/common/Icon';
11 const Header = () => {
12 const { pathname } = useLocation();
13 const { t } = useTranslation();
15 return <Navbar id="header" bg="dark" expand="md" variant="dark">
17 <LinkContainer to="/">
22 <Navbar.Toggle aria-controls="header-nav" label={t('button.menu')}>
23 <Icon.MENU title="" />
25 <Navbar.Collapse id="header-nav">
26 <Nav activeKey={pathname}>
27 <LinkContainer to="/tournaments/6">
28 <Nav.Link href="/tournaments/6">
33 <Nav activeKey={pathname} className="ms-auto">
34 <LinkContainer to="/tech">
35 <Nav.Link href="/tech">
39 <LinkContainer to="/map/lw">
40 <Nav.Link href="/map/lw">
45 <div className="d-flex align-items-center">
46 <Navbar.Text className="mx-2">
56 export default Header;