decord/source/modules/messages/getHumanizedCallDuration.tsx

23 lines
564 B
TypeScript
Raw Normal View History

// Module ID: 8032
// Function ID: 8033
2026-07-20 16:05:17 +00:00
// Name: getHumanizedCallDuration
2026-07-23 10:11:24 +00:00
// Dependencies: [2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 8032 (getHumanizedCallDuration)
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const result = size.fileFinishedImporting("modules/messages/getHumanizedCallDuration.tsx");
2026-07-20 16:05:17 +00:00
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;
};