decord/source/modules/safety_hub/hooks/useIsNewClassification.tsx
github-actions ecf26fc058 chore: update source for alpha 347.2
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
2026-09-16 07:03:15 +00:00

16 lines
634 B
TypeScript

// Module ID: 14889
// Function ID: 14890
// Name: useIsNewClassification
// Dependencies: [11, 2]
// Exports: useIsNewClassification
// Module 14889 (useIsNewClassification)
import SnowflakeUtilsDefault from "SnowflakeUtils" /* 11 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/safety_hub/hooks/useIsNewClassification.tsx");
export const useIsNewClassification = function useIsNewClassification(classification) {
const extractTimestampResult = SnowflakeUtilsDefault.extractTimestamp(classification.id);
return Math.abs(extractTimestampResult - new Date().getTime()) < 86400000;
};