import { TFunction } from 'i18next';
import { VatReturnPayTax, VatReturnReceiptType, VatReturnTargetType } from './types';

export const getVatReturnReceiptTypeBtnGroup = (t: TFunction) => [
  {name: t('transaction.constants.all'), value: VatReturnReceiptType.ALL },
  {name: t('vatReturn.receipt'), value: VatReturnReceiptType.RECEIPT },
  {name: t('vatReturn.bill'), value: VatReturnReceiptType.BILL }
];

export const getVatReturnTargetTypeBtnGroup = (t: TFunction) => [
  {name: t('transaction.constants.all'), value: VatReturnTargetType.ALL },
  {name: t('vatReturn.general'), value: VatReturnTargetType.GENERAL },
  {name: t('vatReturn.differenceSettlement'), value: VatReturnTargetType.DIFFERENCE_COLLECTION },
  {name: t('vatReturn.refundSettlement'), value: VatReturnTargetType.REFUND_SETTLEMENT }
];

export const getVatReturnTaxBtnGroups = (t: TFunction) => [
  {name: t('vatReturn.taxable'), value: VatReturnPayTax.TAX },
  {name: t('vatReturn.taxExempt'), value: VatReturnPayTax.NOTAX },
];