<script setup lang="ts">
import { TableHead } from '~/components/pub/ui/table'
import { cn } from '~/lib/utils'

const props = defineProps<{
  class?: string
  label?: string
  isRequired?: boolean
}>()
</script>

<template>
  <TableHead :class="cn('text-sm font-normal text-black dark:text-white', props.class)">
    {{ label || '' }}
    <span
      v-if="isRequired"
      class="text-red-600"
    >
      *
    </span>
  </TableHead>
</template>
