<script setup lang="ts">
import DataTable from '~/components/pub/my-ui/data-table/data-table.vue'

import type { PrescriptionItem } from '~/models/prescription-item';
import { config } from './list.cfg'

defineProps<{
  data: PrescriptionItem[]
}>()

const emit = defineEmits<{
  tambah: [mode: string]
}>()

</script>

<template>
  <DataTable class="border mb-2"
    v-bind="config"
    :rows="data"
  />
</template>
