import gql from 'graphql-tag' import { Query, Mutation } from 'react-apollo' import InstrumentSubsystem from './InstrumentSubsystem' import Gallery from './Gallery' const InstrumentForm = props => { const [state, setState] = React.useState({ id: null, name: '', description: '', documents: [], interfaces: [], subsystems: [], ...props.instrument }) const toState = event => { setState({ [event.target.name]: event.target.value }) } return (
) } const Instrument = props => { const { instrument } = props return instrument ? ({instrument.description}
Instrument not found.
) } export default Instrument export { InstrumentForm }