10 lines
338 B
TypeScript
10 lines
338 B
TypeScript
interface CustomerDialogIdentity {
|
|
tenantCode?: string | null
|
|
tenantName?: string | null
|
|
}
|
|
|
|
export function customerDialogTitle(action: string, customer?: CustomerDialogIdentity | null): string {
|
|
const identity = customer?.tenantCode?.trim() || customer?.tenantName?.trim()
|
|
return identity ? `${action} · ${identity}` : action
|
|
}
|