snapshot of https://github.com/jitsi/jitsi-meet.git @ fd1749dd28f4138aa80234fc7f311b19aaffa0e7 (2026-09-15)
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
import React from 'react';
|
||||
import { Platform } from 'react-native';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import { IReduxState } from '../../../app/types';
|
||||
import { isDesktopShareButtonDisabled } from '../../functions.native';
|
||||
|
||||
import ScreenSharingAndroidButton from './ScreenSharingAndroidButton';
|
||||
import ScreenSharingIosButton from './ScreenSharingIosButton';
|
||||
|
||||
const ScreenSharingButton = (props: any) => (
|
||||
<>
|
||||
{Platform.OS === 'android'
|
||||
&& <ScreenSharingAndroidButton { ...props } />
|
||||
}
|
||||
{Platform.OS === 'ios'
|
||||
&& <ScreenSharingIosButton { ...props } />
|
||||
}
|
||||
</>
|
||||
);
|
||||
|
||||
/**
|
||||
* Maps (parts of) the redux state to the associated props for the
|
||||
* {@code ScreenSharingButton} component.
|
||||
*
|
||||
* @param {Object} state - The Redux state.
|
||||
* @private
|
||||
* @returns {Object}
|
||||
*/
|
||||
function _mapStateToProps(state: IReduxState) {
|
||||
return {
|
||||
_disabled: isDesktopShareButtonDisabled(state)
|
||||
};
|
||||
}
|
||||
|
||||
export default connect(_mapStateToProps)(ScreenSharingButton);
|
||||
Reference in New Issue
Block a user