decord/source/modules/messages/getHumanizedCallDuration.tsx

22 lines
572 B
TypeScript
Raw Normal View History

2026-07-21 22:01:30 +00:00
// Module ID: 7661
2026-07-22 07:54:56 +00:00
// Function ID: 61256
2026-07-20 16:05:17 +00:00
// Name: getHumanizedCallDuration
2026-07-21 22:01:30 +00:00
// Dependencies: []
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-21 22:01:30 +00:00
// Module 7661 (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;
};