import React from 'react';
import { Label } from '@widergy/mobile-ui';
import { Dimensions, Image, View } from 'react-native';
import styles from './styles';
import { PROBE_MODEL } from './constants';
import ProbeDeviceImage from '../assets/dashboard/probeDevice.png';
import Colors from '../Colors';
interface BadgeTranslation {
statusBadge: string;
statusBadgeDisconnected: string;
}
interface Props {
translations: BadgeTranslation;
deviceSerial: string;
connected: boolean;
deviceIcon?: number;
}
const ProbeDevice = ({ translations, deviceSerial, connected, deviceIcon }: Props) => {
const renderBadge = () => {
return connected ? (
) : (
);
};
const windowHeight = Dimensions.get('window').height;
const isDeviceSmall = windowHeight < 593;
return (
{renderBadge()}
{!isDeviceSmall && (
)}
);
};
export default ProbeDevice;