15 lines
502 B
TypeScript
15 lines
502 B
TypeScript
import type { ComputedValues } from 'stores/calculation/values/computed';
|
|
|
|
export const elementsToComputed: Record<string, ComputedValues> = {
|
|
labelLeaseObjectRisk: 'leaseObjectRiskName',
|
|
tbxInsKaskoPriceLeasePeriod: 'insKaskoPriceLeasePeriod',
|
|
labelIrrInfo: 'irrInfo',
|
|
labelRegistrationDescription: 'registrationDescription',
|
|
};
|
|
|
|
export type Elements = keyof typeof elementsToComputed;
|
|
|
|
export function getComputedValueName(elementName: Elements) {
|
|
return elementsToComputed[elementName];
|
|
}
|