<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>{{ position.executivePosition }} von {{ position.start }} bis {{ position.end ?? "heute" }}</p>
    </div>
    <div class="p-2">
      <p v-if="position.note">Notiz: {{ position.note }}</p>
    </div>
  </div>
</template>

<script setup lang="ts">
import { defineComponent, type PropType } from "vue";
import { mapState, mapActions } from "pinia";
import type { MemberExecutivePositionViewModel } from "@/viewmodels/admin/memberExecutivePosition.models";
</script>

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