const React = require("react"); import {CompletedGather} from "javascripts/components/gather"; const ArchivedGathers = exports.ArchivedGathers = React.createClass({ propTypes: { archive: React.PropTypes.array.isRequired, servers: React.PropTypes.array.isRequired, maps: React.PropTypes.array.isRequired }, render() { let archive = this.props.archive .sort((a, b) => { return new Date(b.createdAt) - new Date(a.createdAt); }) .map((archivedGather, index) => { return }); return (
Archived Gathers
{archive}
); } });