<script setup lang="ts">
// @todo: sample custom cell component
import { computed } from "vue";
import {
  AFlag,
  // type Column,
} from "@actindo/core-ui";
import {
  SAMPLE_STATUS,
  // type ISampleEntity,
} from "@/services/api/Sample/Entity";
import { SAMPLE_STATUS_FLAGS } from "../constants";

const props = defineProps<{
  // row: ISampleEntity;
  // rowIndex: number;
  // cell: Column;
  cellValue: SAMPLE_STATUS;
}>();

const options = computed(() => SAMPLE_STATUS_FLAGS[props.cellValue]);
</script>

<template>
  <AFlag v-if="options" v-bind="options">
    {{ $t(options.label) }}
  </AFlag>
</template>
