import * as React from 'react'; import classNames from 'classnames'; import { ContactName, Props as ContactNameProps } from './ContactName'; import { MessageRequestActionsConfirmation, MessageRequestState, Props as MessageRequestActionsConfirmationProps, } from './MessageRequestActionsConfirmation'; import { Intl } from '../Intl'; import { LocalizerType } from '../../types/Util'; export type Props = { i18n: LocalizerType; onAccept(): unknown; } & Omit & Omit< MessageRequestActionsConfirmationProps, 'i18n' | 'state' | 'onChangeState' >; export const MessageRequestActions = ({ i18n, name, profileName, phoneNumber, conversationType, isBlocked, onBlock, onBlockAndDelete, onUnblock, onDelete, onAccept, }: Props) => { const [mrState, setMrState] = React.useState(MessageRequestState.default); return ( <> {mrState !== MessageRequestState.default ? ( ) : null}

, ]} />

{isBlocked ? ( ) : ( )} {!isBlocked ? ( ) : null}
); };