Files
new-phone-who-dis/phone/src/os/call/components/CallModal.tsx
T
J Francisco Rader 75a4eb176e Feature / Streamer Mode (#159)
* feat(phone/settings): Add streamer mode setting and PictureReveal component :)

* feat(phone/settings): Add PictureReveal streamer mode to twitter and improve its theme a bit
2021-03-11 16:00:04 -05:00

32 lines
991 B
TypeScript

import React from 'react';
import { AppWrapper } from '../../../ui/components/AppWrapper';
import { AppContent } from '../../../ui/components/AppContent';
import { useCall } from '../hooks/useCall';
import useStyles from './modal.styles';
import CallTimer from './CallTimer';
import { CallControls } from './CallControls';
import { Box } from '@material-ui/core';
import { useSimcard } from '../../simcard/hooks/useSimcard';
export const CallModal = () => {
const classes = useStyles();
const { call } = useCall();
const { number: myNumber } = useSimcard();
return (
<AppWrapper>
<AppContent>
<Box pt={24}>
<h1 style={{ textAlign: 'center' }}>
{myNumber === call?.transmitter ? call?.receiver : call?.transmitter}
</h1>
<CallTimer isAccepted={call?.accepted} />
</Box>
<div className={classes.actions}>
<CallControls size="medium" />
</div>
</AppContent>
</AppWrapper>
);
};