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 = new Set('back-compat'), location: currentLocation = 'loading...' } = store.get(); const location = currentLocation.length > 70 ? `${currentLocation.slice(0, 70)}...` : currentLocation; return ( <>
{Array.from(tabs).map((tab, i) => ( ))}
{location && (
{location}
)} ); } export default observer(SubHeader);