decord/source/modules/messages/getHumanizedCallDuration.tsx
2026-07-20 17:37:48 +00:00

21 lines
572 B
TypeScript

// Module ID: 7646
// Function ID: 61177
// Name: getHumanizedCallDuration
// Dependencies: []
// Exports: default
// Module 7646 (getHumanizedCallDuration)
const _module = require(dependencyMap[0]);
const result = _module.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;
};