decord/source/modules/channel_following/useChannelFollowerStats.tsx

42 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 9816
2026-07-27 11:26:19 +00:00
// Function ID: 76109
2026-07-20 16:05:17 +00:00
// Name: useChannelFollowerStats
2026-07-25 08:10:48 +00:00
// Dependencies: [57, 31, 9817, 664, 566, 9818, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-25 08:10:48 +00:00
// Module 9816 (useChannelFollowerStats)
2026-07-23 10:11:24 +00:00
import _slicedToArray from "_slicedToArray";
import result from "result";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
const require = arg1;
const HOUR = require("set").Millis.HOUR;
const result = require("_isNativeReflectConstruct").fileFinishedImporting("modules/channel_following/useChannelFollowerStats.tsx");
2026-07-20 16:05:17 +00:00
export default function useChannelFollowerStats(arg0) {
2026-07-23 10:11:24 +00:00
const _require = arg0;
const tmp = stateFromStores(React.useState(false), 2);
2026-07-20 16:05:17 +00:00
const first = tmp[0];
2026-07-23 10:11:24 +00:00
const dependencyMap = tmp[1];
const items = [_isNativeReflectConstruct];
2026-07-20 16:05:17 +00:00
const items1 = [arg0];
2026-07-23 10:11:24 +00:00
stateFromStores = _require(566).useStateFromStores(items, () => outer1_5.getFollowerStatsForChannel(closure_0), items1);
2026-07-20 16:05:17 +00:00
const items2 = [arg0, stateFromStores, first];
const effect = React.useEffect(() => {
if (null == stateFromStores) {
if (!first) {
2026-07-23 10:11:24 +00:00
dependencyMap(true);
2026-07-25 08:10:48 +00:00
const channelFollowerStats = first(9818).fetchChannelFollowerStats(closure_0);
const obj = first(9818);
2026-07-20 16:05:17 +00:00
}
} else {
const _Date = Date;
}
if (tmp11) {
2026-07-23 10:11:24 +00:00
dependencyMap(false);
2026-07-20 16:05:17 +00:00
}
}, items2);
const items3 = [stateFromStores, first];
return items3;
};