mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 05:10:31 +00:00
10 lines
374 B
JavaScript
10 lines
374 B
JavaScript
import { formatMessage } from "services/intl";
|
|
|
|
export const transitionItemTypeKeyToLabel = (itemTypeKey) => {
|
|
const table = {
|
|
'service': formatMessage({ id: 'service' }),
|
|
'inventory': formatMessage({ id: 'inventory' }),
|
|
'non-inventory': formatMessage({ id: 'non_inventory' }),
|
|
};
|
|
return typeof table[itemTypeKey] === 'string' ? table[itemTypeKey] : '';
|
|
}; |