decord/source/modules/messages/getHumanizedCallDuration.tsx

22 lines
581 B
TypeScript
Raw Normal View History

2026-07-21 06:55:02 +00:00
// Module ID: 7660
// Function ID: 61234
2026-07-20 16:05:17 +00:00
// Name: getHumanizedCallDuration
2026-07-21 06:55:02 +00:00
// Dependencies: [284214097]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-21 06:55:02 +00:00
// Module 7660 (getHumanizedCallDuration)
2026-07-20 16:05:17 +00:00
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;
};