2019-03-29 13:26:49 +00:00
|
|
|
// @flow
|
2019-03-27 10:23:41 +00:00
|
|
|
|
|
|
|
import React from 'react';
|
2022-02-14 10:13:18 +00:00
|
|
|
import { View } from 'react-native';
|
2019-03-27 10:23:41 +00:00
|
|
|
|
2022-11-08 10:24:32 +00:00
|
|
|
import { IconRaiseHand } from '../../../base/icons';
|
2019-04-15 16:23:28 +00:00
|
|
|
import { BaseIndicator } from '../../../base/react';
|
2019-03-27 10:23:41 +00:00
|
|
|
import { connect } from '../../../base/redux';
|
|
|
|
import AbstractRaisedHandIndicator, {
|
|
|
|
type Props,
|
|
|
|
_mapStateToProps
|
|
|
|
} from '../AbstractRaisedHandIndicator';
|
|
|
|
|
2022-02-14 10:13:18 +00:00
|
|
|
import styles from './styles';
|
|
|
|
|
2019-03-27 10:23:41 +00:00
|
|
|
/**
|
|
|
|
* Thumbnail badge showing that the participant would like to speak.
|
|
|
|
*
|
2021-11-04 21:10:43 +00:00
|
|
|
* @augments Component
|
2019-03-27 10:23:41 +00:00
|
|
|
*/
|
|
|
|
class RaisedHandIndicator extends AbstractRaisedHandIndicator<Props> {
|
|
|
|
/**
|
2019-03-29 13:26:49 +00:00
|
|
|
* Renders the platform specific indicator element.
|
2019-03-27 10:23:41 +00:00
|
|
|
*
|
2019-03-29 13:26:49 +00:00
|
|
|
* @returns {React$Element<*>}
|
2019-03-27 10:23:41 +00:00
|
|
|
*/
|
2019-03-29 13:26:49 +00:00
|
|
|
_renderIndicator() {
|
2019-03-27 10:23:41 +00:00
|
|
|
return (
|
2022-02-14 10:13:18 +00:00
|
|
|
<View style = { styles.raisedHandIndicator }>
|
|
|
|
<BaseIndicator
|
2022-11-08 10:24:32 +00:00
|
|
|
icon = { IconRaiseHand }
|
2022-02-14 10:13:18 +00:00
|
|
|
iconStyle = { styles.raisedHandIcon } />
|
|
|
|
</View>
|
2019-03-27 10:23:41 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default connect(_mapStateToProps)(RaisedHandIndicator);
|