import React from 'react'; import { Intent, Alert, H4 } from '@blueprintjs/core'; import { useTranslation } from 'react-i18next'; import DeviceInfoCallout from './DeviceInfoCallout'; import isWithReactRevealAnimations from '../utils/isWithReactRevealAnimations'; interface AllowConnectionForDeviceAlertProps { device: Device | null; isOpen: boolean; onCancel: () => void; onConfirm: () => void; } export default function AllowConnectionForDeviceAlert( props: AllowConnectionForDeviceAlertProps ) { const { t } = useTranslation(); const { device, isOpen, onCancel, onConfirm } = props; const denyText = t('Deny'); const allowText = t('Allow'); return (

{t('Someone is trying to connect, do you allow?')}

); }