20 lines
536 B
TypeScript
20 lines
536 B
TypeScript
// Module ID: 7869
|
|
// Function ID: 7870
|
|
// Name: getHumanizedCallDuration
|
|
// Dependencies: [2]
|
|
// Exports: default
|
|
|
|
// Module 7869 (getHumanizedCallDuration)
|
|
const result = require("set").fileFinishedImporting("modules/messages/getHumanizedCallDuration.tsx");
|
|
|
|
export default function getHumanizedCallDuration(call) {
|
|
let duration = null;
|
|
if (null != call.call) {
|
|
duration = call.call.duration;
|
|
}
|
|
let humanizeResult = null;
|
|
if (null != duration) {
|
|
humanizeResult = duration.humanize();
|
|
}
|
|
return humanizeResult;
|
|
};
|