import type { Config } from '~/components/pub/my-ui/data-table'

type SmallDetailDto = any

export const config: Config = {
  cols: [ { width: 150 }, {}, { width: 150 }],

  headers: [
    [
      { label: 'No' },
      { label: 'Name' },
      { label: 'Jumlah' },
    ],
  ],

  keys: ['number', 'material.name', 'count'],

  parses: {
    number: (rec: unknown): unknown => {
      return (rec as SmallDetailDto).medicineGroup?.name || '-'
    },
  },
}
