type HeaderType = {
  id: string;
  label: string;
  sortable?: boolean;
  width?: string;
};

export const getConfigHeaders = (): HeaderType[] => [
  {
    id: 'id',
    label: 'Id',
    sortable: true,
    width: '100',
  },
  {
    id: 'type',
    label: 'Type',
    sortable: true,
    width: '100',
  },
  {
    id: 'description',
    label: 'Name',
    sortable: true,
  },
  {
    id: 'lang',
    label: 'Language',
    sortable: true,
    width: '100',
  },
  {
    id: 'status',
    label: 'Status',
    sortable: true,
    width: '100',
  },
  {
    id: 'schedule_status',
    label: 'Auto Import',
    sortable: true,
    width: '100',
  },
  {
    id: 'updatedBy',
    label: 'Updated By',
    sortable: true,
    width: '100',
  },
  {
    id: 'updatedDate',
    label: 'Updated Date',
    sortable: true,
    width: '100',
  },
  {
    id: 'actions',
    label: '',
  },
];

export const typeToUrlSegment = (type: string) => type.replace(/_/g, '-').toLowerCase();
