openreplay/frontend/app/components/Session/Player/LivePlayer/LivePlayerBlock.tsx
Andrey Babushkin fd5c0c9747
Add lokalisation (#3092)
* applied eslint

* add locales and lint the project

* removed error boundary

* updated locales

* fix min files

* fix locales
2025-03-06 17:43:15 +01:00

28 lines
784 B
TypeScript

import React from 'react';
import cn from 'classnames';
import styles from 'Components/Session_/playerBlock.module.css';
import Player from './LivePlayerInst';
import SubHeader from './LivePlayerSubHeader';
interface IProps {
fullView?: boolean;
isMultiview?: boolean;
}
function LivePlayerBlock(props: IProps) {
const { fullView = false, isMultiview } = props;
const shouldShowSubHeader = !fullView && !isMultiview;
return (
<div
className={cn(styles.playerBlock, 'flex flex-col', 'overflow-x-hidden')}
style={{ zIndex: undefined, minWidth: isMultiview ? '100%' : undefined }}
>
{shouldShowSubHeader ? <SubHeader live /> : null}
<Player fullView={fullView} isMultiview={isMultiview} />
</div>
);
}
export default LivePlayerBlock;