decord/source/modules/self_mod/hooks/useChannelSafetyWarning.tsx

39 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 10370
// Function ID: 80045
2026-07-20 16:05:17 +00:00
// Name: useChannelSafetyWarning
2026-07-25 08:10:48 +00:00
// Dependencies: [9031, 566, 2]
2026-07-20 16:05:17 +00:00
// Exports: useChannelSafetyWarning
2026-07-27 11:26:19 +00:00
// Module 10370 (useChannelSafetyWarning)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
const require = arg1;
const result = require("set").fileFinishedImporting("modules/self_mod/hooks/useChannelSafetyWarning.tsx");
2026-07-20 16:05:17 +00:00
export const useChannelSafetyWarning = function useChannelSafetyWarning(channelId, LIKELY_ATO) {
2026-07-23 10:11:24 +00:00
const _require = channelId;
2026-07-20 16:05:17 +00:00
const dependencyMap = LIKELY_ATO;
2026-07-23 10:11:24 +00:00
const items = [_isNativeReflectConstruct];
2026-07-20 16:05:17 +00:00
const items1 = [channelId];
2026-07-23 10:11:24 +00:00
const stateFromStores = _require(566).useStateFromStores(items, () => outer1_2.getChannelSafetyWarnings(closure_0), items1);
const found = stateFromStores.filter((type) => type.type === closure_1);
2026-07-20 16:05:17 +00:00
return found.find((dismiss_timestamp) => {
let tmp = null == dismiss_timestamp.dismiss_timestamp;
if (tmp) {
let expiry;
if (null != dismiss_timestamp) {
expiry = dismiss_timestamp.expiry;
}
let tmp3 = null == expiry;
if (!tmp3) {
const _Date = Date;
const _Date2 = Date;
const parsed = Date.parse(dismiss_timestamp.expiry);
tmp3 = parsed > Date.now();
}
tmp = tmp3;
}
return tmp;
});
};