import { Node } from './types' ; export default function makeNode ( json ) { const { id , clusterId , hostname , addr , tunnel , tags = [ ] } = json ; return { id , clusterId , hostname , tags : tags . map ( tag => `${ tag . name }: ${ tag . value }` ) , addr , tunnel , } ; }