import React from 'react';
import { connect } from 'react-redux'
import * as selectors from '../selectors'
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) => {
return (
in:{` ${locationName}`}
) } return ''; } renderCardStackHeader() { const header_lang = copy[this.props.language].cardstack.header; return ({(this.props.isLoading) ? copy[this.props.language].loading : `${this.props.selected.length} ${header_lang}`}
{(this.props.isLoading) ? '' : this.renderLocation()}