import gql from 'graphql-tag' import { Query } from 'react-apollo' import Link from 'next/link' import { InstrumentForm, INSTRUMENTS_QUERY } from './Instrument' const InstrumentList = props => ( {({ data, loading, error }) => { return ( <>

Instrument List

{loading ? (

Loading instruments...

) : error ? (

Error loading instruments: {error.message}

) : !data.instruments.length ? (

No instruments found.

) : ( )} Add an instrument ) }}
) export default InstrumentList