decord/source/modules/messages/getHumanizedCallDuration.tsx
2026-08-25 06:04:03 +00:00

22 lines
557 B
TypeScript

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