import '../scss/main.scss';
import React from 'react';
import Card from './Card.jsx';
import copy from '../js/data/copy.json';
import {
isNotNullNorUndefined
} from '../js/data/utilities.js';
class CardStack extends React.Component {
constructor(props) {
super(props);
}
renderCards() {
if (this.props.selected.length > 0) {
return this.props.selected.map((event) => {
// if event has property 'name', update with event details
const shouldCardUpdate = (event.name);
return (
in:{` ${locationName}`}
) } return ''; } render() { const header_lang = copy[this.props.language].cardstack.header; if (this.props.isFetchingEvents) { return ({copy[this.props.language].loading}
{`${this.props.selected.length} ${header_lang}`}
{this.renderLocation()}