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.tsx 670B

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