/* eslint-disable react/jsx-one-expression-per-line */ import React from 'react'; import { Callout, Text, H4, Tooltip, Position } from '@blueprintjs/core'; import { Row, Col } from 'react-flexbox-grid'; import { useTranslation } from 'react-i18next'; import { TFunction } from 'i18next'; interface DeviceInfoCalloutProps { deviceType: string | undefined; deviceIP: string | undefined; deviceOS: string | undefined; sharingSessionID: string | undefined; deviceBrowser: string | undefined; } function getContentOfTooltip(t: TFunction) { return ( <> {t( 'This should match with Device IP displayed on the screen of device that is trying to connect' )} {t('If IP addresses dont match click Disconnect button')} ); } export default function DeviceInfoCallout(props: DeviceInfoCalloutProps) { const { t } = useTranslation(); const { deviceType, deviceIP, deviceOS, sharingSessionID, deviceBrowser, } = props; return ( <>

{`${t('Partner Device Info')}:`}

{`${t('Device Type')}:`} {deviceType}
{`${t('Device IP')}:`}{' '} {deviceIP}
{`${t('Device Browser')}:`} {deviceBrowser} {`${t('Device OS')}:`} {deviceOS}
{`${t('Session ID')}:`} {sharingSessionID}
); }