import React, { ReactElement } from 'react' import { Typography, Accordion, AccordionSummary, AccordionDetails } from '@material-ui/core/' import { ExpandMoreSharp } from '@material-ui/icons/' import ConnectToHost from '../../../components/ConnectToHost' import CodeBlockTabs from '../../../components/CodeBlockTabs' import { apiHost } from '../../../constants' type Props = StatusHookCommon export default function NodeConnectionCheck({ isLoading, isOk }: Props): ReactElement | null { if (isLoading) return null return (
Node API ({apiHost})
{!isOk && ( We cannot connect to your nodes API at {apiHost}. Please check the following to troubleshoot your issue. } aria-controls="panel1a-content" id="panel1a-header"> Troubleshoot
  1. Check the status of your node by running the below command to see if your node is running.
  2. If your node is running, check your firewall settings to make sure that port 1633 (or your custom specified port) is exposed to the internet. If your node is not running try executing the below command to start your bee node
  3. Run the commands to validate your node is running and see the log output.
)}
) }