import React from 'react';
import PropTypes from 'prop-types';

export default function Tier(props) {
  return props.children;
}

Tier.propTypes = {
  clippedResultsMessage: PropTypes.func,
  id: PropTypes.string.isRequired,
  itemSearch: PropTypes.func,
  label: PropTypes.string.isRequired,
  onDrilldown: PropTypes.func.isRequired,
  onHrefPrint: PropTypes.func,
  onGet: PropTypes.func,
  onSelect: PropTypes.func.isRequired,
  placeholder: PropTypes.string
};

Tier.defaultProps = {
  clippedResultsMessage: limit => `Your list exceeds ${limit} items. Use search to narrow results.`,
  id: 'id',
  itemSearch: (term, item) => true,
  label: 'name',
  onDrilldown: (option, cb, errCb) => { cb([]); },
  onHrefPrint: (option) => undefined,
  onGet: (id, cb, errCb) => { cb([]); },
  onSelect: (option) => {},
  placeholder: 'Search'
};
