mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-07 15:50:29 +03:00
Place holder buttons
This commit is contained in:
parent
7beb8411a9
commit
5677042157
1 changed files with 28 additions and 16 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
import { logger } from 'matrix-js-sdk/lib/logger';
|
import { logger } from 'matrix-js-sdk/lib/logger';
|
||||||
import { useMatrixClient } from '../../hooks/useMatrixClient';
|
import { useMatrixClient } from '../../hooks/useMatrixClient';
|
||||||
import { useCallState } from '../client/CallProvider';
|
import { useCallState } from '../client/CallProvider';
|
||||||
import { Box, Text } from 'folds';
|
import { Box, Icon, IconButton, Icons, Text } from 'folds';
|
||||||
|
|
||||||
export function CallNavBottom() {
|
export function CallNavBottom() {
|
||||||
const {
|
const {
|
||||||
|
|
@ -42,24 +42,36 @@ export function CallNavBottom() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Muted:{(!isAudioEnabled).toString()}
|
||||||
|
//Videosn't:{(!isVideoEnabled).toString()}
|
||||||
|
/*
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box direction="Column">
|
|
||||||
<Box
|
<Box
|
||||||
direction="Row"
|
direction="Column"
|
||||||
gap="500"
|
|
||||||
style={{
|
style={{
|
||||||
flexShrink: 0,
|
flexShrink: 0,
|
||||||
borderTop: `1px solid #e0e0e0`,
|
borderTop: `1px solid #e0e0e0`,
|
||||||
|
justifyContent: 'center',
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
<Box direction="Row" style={{ justifyContent: 'center' }}>
|
||||||
{/* Going to need better icons for this */}
|
{/* Going to need better icons for this */}
|
||||||
<button onClick={toggleAudio}> Muted:{(!isAudioEnabled).toString()} </button>
|
<IconButton onClick={toggleAudio}>
|
||||||
<button onClick={toggleVideo}> Videosn't:{(!isVideoEnabled).toString()} </button>
|
<Icon src={!isAudioEnabled ? Icons.VolumeHigh : Icons.VolumeMute} />
|
||||||
|
</IconButton>
|
||||||
|
<IconButton onClick={toggleVideo}>
|
||||||
|
<Icon src={!isVideoEnabled ? Icons.Vlc : Icons.Lock}></Icon>
|
||||||
|
</IconButton>
|
||||||
|
<IconButton onClick={hangUp}>
|
||||||
|
<Icon src={Icons.Phone}></Icon>
|
||||||
|
</IconButton>
|
||||||
</Box>
|
</Box>
|
||||||
<Box>
|
<Box style={{ justifyContent: 'center' }}>{mx.getRoom(activeCallRoomId)?.normalizedName}</Box>
|
||||||
<button onClick={hangUp}> Hangup </button>
|
|
||||||
</Box>
|
|
||||||
<Box>{mx.getRoom(activeCallRoomId)?.normalizedName}</Box>
|
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue