import React from 'react'; import { Icon, Tooltip } from 'UI'; import { Link2 } from 'lucide-react'; import { PlayerContext } from 'App/components/Session/playerContext'; import { observer } from 'mobx-react-lite'; import SessionTabs from 'Components/Session/Player/SharedComponents/SessionTabs'; import { useTranslation } from 'react-i18next'; function SubHeader() { const { t } = useTranslation(); const { store } = React.useContext(PlayerContext); const { location: currentLocation = 'loading...' } = store.get(); const location = currentLocation.length > 70 ? `${currentLocation.slice(0, 70)}...` : currentLocation; return ( <>
{location && (
{location}
)} ); } export default observer(SubHeader);