import React from 'react'; import { List, Label } from 'semantic-ui-react'; import {convertTime} from '../../../tools' const StatusItem = ({ i18n, data }) => { let iotype = i18n&&i18n.getResource&&i18n.language ? i18n.getResource(i18n.language + '.translation.porttype') : []; let iot = {}; for(let i in iotype){ iot[iotype[i].code] = iotype[i].name; } let tc = { "1": "orange", "2": "green", "3": "violet", "4": "brown" } return ( ) } export default StatusItem;