import React from 'react'; import { Icon, Tooltip } from 'UI'; import { PlayerContext } from 'App/components/Session/playerContext'; import { observer } from 'mobx-react-lite'; import Tab from 'Components/Session/Player/SharedComponents/Tab'; function SubHeader() { const { store } = React.useContext(PlayerContext); const { currentTab, tabs, location: currentLocation = '' } = store.get(); const location = currentLocation !== undefined ? currentLocation.length > 70 ? `${currentLocation.slice(0, 70)}...` : currentLocation : undefined; return ( <>