import React from 'react'; import { Row, Col } from 'react-flexbox-grid'; import { Icon, Text, Button, Popover, Tooltip } from '@blueprintjs/core'; import { useTranslation } from 'react-i18next'; import { TFunction } from 'i18next'; import DeviceInfoCallout from '../DeviceInfoCallout'; import isWithReactRevealAnimations from '../../utils/isWithReactRevealAnimations'; interface DeviceConnectedInfoButtonProps { device: Device; onDisconnect: () => void; } const getDeviceConnectedPopoverContent = ( t: TFunction, pendingConnectionDevice: Device, handleDisconnect: () => void ) => { const disconnectButtonText = t('Disconnect'); return (
); }; export default function DeviceConnectedInfoButton( props: DeviceConnectedInfoButtonProps ) { const { t } = useTranslation(); const { device, onDisconnect } = props; return ( <> {t('Click to see more')}} position="right" hoverOpenDelay={400} > ); }