import { Mutation } from 'react-apollo' import gql from 'graphql-tag' import { INTERFACE_LIST } from './InterfaceList' const CONNECT_PORT = gql` mutation CONNECT_PORT($interfaceName: String!, $device: String!) { connect(interfaceName: $interfaceName, device: $device) { id device interfaceName } } ` class Port extends React.Component { render () { const { interfaceName, device, name, description } = this.props.data return ( {connect => (

{device}

Name:

{name}

{description}

)}
) } } export default Port