import React from 'react';
import Package from './package';
class PackageSet extends React.Component {
static propTypes = {
title: React.PropTypes.string.isRequired,
packages: React.PropTypes.array,
emptyText: React.PropTypes.element,
showVersions: React.PropTypes.bool,
}
render() {
if (!this.props.packages) return false;
const packages = this.props.packages.map((pkg) =>