25 lines
626 B
TypeScript
25 lines
626 B
TypeScript
import React from 'react';
|
|
|
|
import * as List from '../../../containers/List';
|
|
import { useVideoConf } from '../../../lib/hooks/useVideoConf';
|
|
|
|
export default function CallSection({ rid }: { rid: string }): React.ReactElement | null {
|
|
const { showCallOption, showInitCallActionSheet } = useVideoConf(rid);
|
|
|
|
if (showCallOption)
|
|
return (
|
|
<List.Section>
|
|
<List.Separator />
|
|
<List.Item
|
|
title={'Call'}
|
|
onPress={showInitCallActionSheet}
|
|
testID='room-actions-call'
|
|
left={() => <List.Icon name='phone' />}
|
|
showActionIndicator
|
|
/>
|
|
<List.Separator />
|
|
</List.Section>
|
|
);
|
|
return null;
|
|
}
|