import { Box, Button, Heading, HStack, Divider, Flex } from '@chakra-ui/react'; import React from 'react'; import { useLocation, Link } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; import { URLs } from '../../__data__/urls'; const Header = () => { const location = useLocation(); const isActive = (keyword: string) => location.pathname.includes(keyword); const { t } = useTranslation('~', { keyPrefix: 'dry-wash.arm.master.sideBar', }); return ( {t('title')} {URLs.armOrder.isOn && ( )} {URLs.armMaster.isOn && ( )} {URLs.armMap.isOn && ( )} ); }; export default Header;