import React from 'react'; import { Icon } from 'UI'; import Autoplay from './Autoplay'; import Bookmark from 'Shared/Bookmark' import SharePopup from '../shared/SharePopup/SharePopup'; import { connectPlayer } from 'Player'; import copy from 'copy-to-clipboard'; import { Tooltip } from 'react-tippy'; import Issues from './Issues/Issues'; function SubHeader(props) { const [isCopied, setCopied] = React.useState(false); const isAssist = window.location.pathname.includes('/assist/'); if (isAssist) return null; const location = props.currentLocation && props.currentLocation.length > 60 ? `${props.currentLocation.slice(0, 60)}...` : props.currentLocation return (