<template>
  <div>
    <div class="discard-pile" v-if="heroesInDiscard.length === 0">0</div>
    <div v-else>
      <hero
        :hero="heroesInDiscard[0]"
        :selectable="false"
        :removable="false"
      ></hero>
    </div>
    <button
      v-if="heroesInDiscard.length > 0"
      class="btn btn-primary"
      @click="$emit('zoom-list-heroes', heroesInDiscard)"
    >
      Show All
    </button>
  </div>
</template>

<script>
import Hero from '../../../common/heroes-display/components/Hero';
export default {
  props: ['heroesInDiscard'],
  components: {
    Hero
  }
};
</script>

<style scoped>
.discard-pile {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 180px;
  width: 100px;
  border: medium solid white;
  background-color: unset;
  color: antiquewhite;
}
</style>
