<template>
  <div>
    <v-row v-for="event in events" :key="event.id" wrap>
      <v-flex xs12>
        <Event
          :event="event"
          :has-user="hasUser"
          :toggle-ignore="toggleIgnore"
        />
      </v-flex>
    </v-row>
  </div>
</template>

<script>
import Event from '../Event'

export default {
  name: 'EventList',
  components: {
    Event
  },
  props: {
    hasUser: {
      type: Boolean,
      required: true
    },
    toggleIgnore: {
      type: Function,
      required: true
    },
    events: {
      type: Array,
      required: true
    }
  }
}
</script>
