decord/stable/source/modules/messages/getHumanizedCallDuration.tsx
2026-10-06 22:12:49 +00:00

22 lines
564 B
TypeScript

// Module ID: 7426
// Function ID: 7427
// Name: getHumanizedCallDuration
// Dependencies: [2]
// Exports: default
// Module 7426 (getHumanizedCallDuration)
import size from "module_2" /* 2 */;
const result = size.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;
};