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.

functions.ts 512B

123456789101112131415161718
  1. import { IReduxState } from '../app/types';
  2. import BaseTheme from '../base/ui/components/BaseTheme.native';
  3. /**
  4. * Control for invite others button enabling.
  5. *
  6. * @param {IReduxState} state - State object.
  7. * @returns {Object}
  8. */
  9. export function getInviteOthersControl(state: IReduxState) {
  10. const { shareDialogVisible } = state['features/share-room'];
  11. const { icon01, icon03 } = BaseTheme.palette;
  12. return {
  13. color: shareDialogVisible ? icon03 : icon01,
  14. shareDialogVisible
  15. };
  16. }