import React from 'react'; import Box from '@material-ui/core/Box'; import SettingsIcon from '@material-ui/icons/Settings'; import IconButton from '@material-ui/core/IconButton'; import CheckCircleIcon from '@material-ui/icons/CheckCircle'; import ErrorIcon from '@material-ui/icons/Error'; import Tooltip from '@material-ui/core/Tooltip'; import { useSelector } from 'react-redux/'; function ConnectionStatus({ error }) { if (error) { return ; } else { return ; } } export default function Header() { const comConnectionStatus = useSelector((state) => state.comConnectionStatusReducer); return (
); }