17 lines
660 B
TypeScript
17 lines
660 B
TypeScript
// Module ID: 14295
|
|
// Function ID: 14296
|
|
// Name: useIsNewClassification
|
|
// Dependencies: [11, 2]
|
|
// Exports: useIsNewClassification
|
|
|
|
// Module 14295 (useIsNewClassification)
|
|
import set from "set" /* 2 */;
|
|
import DISCORD_EPOCHDefault from "DISCORD_EPOCH" /* 11 */;
|
|
|
|
const result = set.fileFinishedImporting("modules/safety_hub/hooks/useIsNewClassification.tsx");
|
|
|
|
export const useIsNewClassification = function useIsNewClassification(classification) {
|
|
const obj = DISCORD_EPOCHDefault;
|
|
const extractTimestampResult = DISCORD_EPOCHDefault.extractTimestamp(classification.id);
|
|
return Math.abs(extractTimestampResult - new Date().getTime()) < 86400000;
|
|
};
|