You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ConferenceInfoContainer.js 672B

123456789101112131415161718192021222324252627282930313233
  1. /* @flow */
  2. import React from 'react';
  3. import { isAlwaysOnTitleBarEmpty } from '../functions.web';
  4. type Props = {
  5. /**
  6. * The children components.
  7. */
  8. children: React$Node,
  9. /**
  10. * Id of the component.
  11. */
  12. id?: string,
  13. /**
  14. * Whether this conference info container should be visible or not.
  15. */
  16. visible: boolean
  17. }
  18. export default ({ visible, children, id }: Props) => (
  19. <div
  20. className = { `subject${isAlwaysOnTitleBarEmpty() ? '' : ' with-always-on'}${visible ? ' visible' : ''}` }
  21. id = { id }>
  22. <div className = { 'subject-info-container' }>
  23. {children}
  24. </div>
  25. </div>
  26. );