import { Invoice } from 'src/schemas'; export const getQuantityType = (invoice: Invoice) => { if (invoice.quantityType === 'Hour') { return 'Hour'; } if (invoice.quantityType === 'Sprint') { return 'Sprint'; } if (invoice.quantityType === 'Month') { return 'Month'; } return 'Qty'; };