import React from 'react'; import { StyleSheet, View } from 'react-native'; import { useTheme } from '../../../contexts'; import { AcceptCallButton } from './AcceptCallButton'; import { RejectCallButton } from './RejectCallButton'; /** * Props for the IncomingCallControls Component. */ export type IncomingCallControlsProps = { /** * Handler to be executed when an incoming call is accepted */ onAcceptCallHandler?: (err?: Error) => void; /** * Handler to be executed when an incoming call is rejected */ onRejectCallHandler?: (err?: Error) => void; }; export const IncomingCallControls = ({ onAcceptCallHandler, onRejectCallHandler, }: IncomingCallControlsProps) => { const { theme: { incomingCall, variants: { buttonSizes }, }, } = useTheme(); return ( ); }; const styles = StyleSheet.create({ buttonGroup: { flexDirection: 'row', justifyContent: 'space-evenly', alignItems: 'center', }, });