import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Link from './Link'; export default class LinkList extends Component { static propTypes = { cx: PropTypes.func.isRequired, createURL: PropTypes.func.isRequired, items: PropTypes.arrayOf( PropTypes.shape({ value: PropTypes.oneOfType([ PropTypes.string, PropTypes.number, PropTypes.object, ]).isRequired, key: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), label: PropTypes.node, modifier: PropTypes.string, ariaLabel: PropTypes.string, disabled: PropTypes.bool, }) ), onSelect: PropTypes.func.isRequired, canRefine: PropTypes.bool.isRequired, }; render() { const { cx, createURL, items, onSelect, canRefine } = this.props; return ( ); } }