lml-main
Version:
This is now a mono repository published into many standalone packages.
17 lines • 872 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const React = require("react");
const courier_stop_1 = require("./courier-stop");
const cosmoui_1 = require("cosmoui");
const styles = require('./courier-stop.scss');
const COURIER_STOP_LABELS = ['B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J',
'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'];
class CourierStops extends React.Component {
render() {
const { stops } = this.props;
return (React.createElement("div", { className: styles.stops },
React.createElement(cosmoui_1.Column, null, stops.map((s, i) => (React.createElement(courier_stop_1.CourierStop, { label: COURIER_STOP_LABELS[i], stop: s, last: i === stops.length - 1, key: i }))))));
}
}
exports.CourierStops = CourierStops;
//# sourceMappingURL=courier-stops.js.map