import React, {useContext} from 'react'; import PropsContext from '../../Contexts/PropsContext'; import RtcContext from '../../Contexts/RtcContext'; import BtnTemplate from '../BtnTemplate'; import styles from '../../Style'; /** * React Component that renders the endcall button * @returns Renders the endcall button */ const EndCall: React.FC = () => { const {styleProps} = useContext(PropsContext); const {localBtnStyles} = styleProps || {}; const {endCall} = localBtnStyles || {}; const {dispatch} = useContext(RtcContext); return ( dispatch({ type: 'EndCall', value: [], }) } /> ); }; export default EndCall;