import { FC } from 'react'; import Decorator, { Colours } from '../Decorator'; import Divider from '../Divider'; import FlexBox from '../FlexBox'; import { BodyText, MonoText } from '../Text'; const MAP_TO_DECORATOR_COLOUR: Record = { online: 'ok', offline: 'off', }; const MAP_TO_HOST_TYPE_DISPLAY: Record = { dr: 'DR', node: 'Subnode', }; const HostListItem: FC = (props) => { const { data } = props; const { hostName, hostStatus, hostType, shortHostName } = data; return ( {MAP_TO_HOST_TYPE_DISPLAY[hostType]} {shortHostName} {hostName} {hostStatus} ); }; export default HostListItem;