<template>
  <div class="flex flex-col h-fit w-full border border-primary rounded-md">
    <div class="bg-primary p-2 text-white flex flex-row justify-between items-center">
      <p>{{ award.award }}</p>
      <PencilIcon class="w-5 h-5" />
    </div>
    <div class="p-2">
      <p>erhalten am: {{ award.date }}</p>
      <p v-if="!award.given">annahme abgelehnt/verwehrt</p>
      <p v-if="award.note">Notiz: {{ award.note }}</p>
    </div>
  </div>
</template>

<script setup lang="ts">
import { defineComponent, type PropType } from "vue";
import { mapState, mapActions } from "pinia";
import type { MemberAwardViewModel } from "@/viewmodels/admin/memberAward.models";
import { PencilIcon } from "@heroicons/vue/24/outline";
</script>

<script lang="ts">
export default defineComponent({
  props: {
    award: {
      type: Object as PropType<MemberAwardViewModel>,
      default: {},
    },
  },
});
</script>
