2022-11-24 11:37:08 +00:00
|
|
|
import React from 'react';
|
|
|
|
import { Text } from 'react-native';
|
|
|
|
import Touchable from 'react-native-platform-touchable';
|
|
|
|
|
|
|
|
import i18n from '../../../../i18n';
|
2023-03-01 18:26:56 +00:00
|
|
|
import { videoConfJoin } from '../../../../lib/methods/videoConf';
|
2022-11-24 11:37:08 +00:00
|
|
|
import { CallParticipants, TCallUsers } from './CallParticipants';
|
|
|
|
import useStyle from './styles';
|
|
|
|
import { VideoConferenceBaseContainer } from './VideoConferenceBaseContainer';
|
|
|
|
|
|
|
|
export default function VideoConferenceOutgoing({ users, blockId }: { users: TCallUsers; blockId: string }): React.ReactElement {
|
|
|
|
const style = useStyle();
|
|
|
|
|
|
|
|
return (
|
|
|
|
<VideoConferenceBaseContainer variant='outgoing'>
|
2023-03-01 18:26:56 +00:00
|
|
|
<Touchable style={style.callToActionButton} onPress={() => videoConfJoin(blockId)}>
|
2022-11-24 11:37:08 +00:00
|
|
|
<Text style={style.callToActionButtonText}>{i18n.t('Join')}</Text>
|
|
|
|
</Touchable>
|
|
|
|
<CallParticipants users={users} />
|
|
|
|
</VideoConferenceBaseContainer>
|
|
|
|
);
|
|
|
|
}
|