import React from 'react'; import { Row, Col } from 'react-flexbox-grid'; import { Icon, Text, Button, Popover, Tooltip } from '@blueprintjs/core'; import isProduction from '../../utils/isProduction'; import DeviceInfoCallout from '../DeviceInfoCallout'; interface DeviceConnectedInfoButtonProps { device: Device; onDisconnect: () => void; } const getDeviceConnectedPopoverContent = ( pendingConnectionDevice: Device, handleDisconnect: () => void ) => { return ( { handleDisconnect(); }} style={{ width: '100%', borderRadius: '5px' }} > Disconnect ); }; export default function DeviceConnectedInfoButton( props: DeviceConnectedInfoButtonProps ) { const { device, onDisconnect } = props; return ( <> Click to manage} position="right" hoverOpenDelay={400} > Connected > ); }