// @flow import React from 'react'; import { useTranslation } from 'react-i18next'; import { ACTION_TRIGGER, MEDIA_STATE } from '../../constants'; import { useLobbyActions } from '../../hooks'; import ParticipantItem from './ParticipantItem'; import { ParticipantActionButton } from './styled'; type Props = { /** * If an overflow drawer should be displayed. */ overflowDrawer: boolean, /** * Callback used to open a drawer with admit/reject actions. */ openDrawerForParticipant: Function, /** * Participant reference */ participant: Object }; export const LobbyParticipantItem = ({ overflowDrawer, participant: p, openDrawerForParticipant }: Props) => { const { id } = p; const [ admit, reject ] = useLobbyActions({ participantID: id }); const { t } = useTranslation(); return ( {t('lobby.reject')} {t('lobby.admit')} ); };