/* global $ */ /* * Metacode selector component * * This component takes in a callback (onMetacodeSelect; takes one metacode id) * and a list of metacode sets and renders them. If you click a metacode, it * passes that metacode's id to the callback. */ import React, { Component } from 'react' import PropTypes from 'prop-types' class MetacodeSelect extends Component { render = () => { if (!this.props.metacodeSets) return null return (