2021-09-20 18:12:56 +00:00
|
|
|
/* @flow */
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
|
2021-12-21 10:22:30 +00:00
|
|
|
import { isAlwaysOnTitleBarEmpty } from '../functions.web';
|
|
|
|
|
2021-09-20 18:12:56 +00:00
|
|
|
type Props = {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The children components.
|
|
|
|
*/
|
2021-12-21 10:22:30 +00:00
|
|
|
children: React$Node,
|
2021-09-20 18:12:56 +00:00
|
|
|
|
2021-12-21 10:22:30 +00:00
|
|
|
/**
|
|
|
|
* Id of the component.
|
|
|
|
*/
|
|
|
|
id?: string,
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Whether this conference info container should be visible or not.
|
|
|
|
*/
|
|
|
|
visible: boolean
|
2021-09-20 18:12:56 +00:00
|
|
|
}
|
|
|
|
|
2021-12-21 10:22:30 +00:00
|
|
|
export default ({ visible, children, id }: Props) => (
|
|
|
|
<div
|
|
|
|
className = { `subject${isAlwaysOnTitleBarEmpty() ? '' : ' with-always-on'}${visible ? ' visible' : ''}` }
|
|
|
|
id = { id }>
|
2021-09-20 18:12:56 +00:00
|
|
|
<div className = { 'subject-info-container' }>
|
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|