import React from 'react'; import { Icon, Tooltip } from 'UI'; import copy from 'copy-to-clipboard'; import { PlayerContext } from 'App/components/Session/playerContext'; import { observer } from 'mobx-react-lite'; function SubHeader() { const { store } = React.useContext(PlayerContext) const { location: currentLocation, } = store.get() const [isCopied, setCopied] = React.useState(false); const location = currentLocation !== undefined ? currentLocation.length > 60 ? `${currentLocation.slice(0, 60)}...` : currentLocation : undefined; return (