import React from 'react';
import {
connectPlayer,
} from 'Player';
import PlayerBlock from '../Session_/PlayerBlock';
import styles from '../Session_/session.module.css';
import { countDaysFrom } from 'App/date';
import cn from 'classnames';
import RightBlock from './RightBlock';
function PlayerContent({ session, live, fullscreen, activeTab, setActiveTab, hasError }) {
const sessionDays = countDaysFrom(session.startedAt);
return (
{hasError ? (
{sessionDays > 2 ? 'Session not found.' : 'This session is still being processed.'}
{sessionDays > 2
? 'Please check your data retention policy.'
: 'Please check it again in a few minutes.'}
) : (
{activeTab !== '' && (
)}
)}
);
}
function RightMenu({ live, tabs, activeTab, setActiveTab, fullscreen }) {
return (
!live &&
!fullscreen &&
);
}
export default connectPlayer((state) => ({
showEvents: !state.showEvents,
hasError: state.error,
}))(PlayerContent);