decord/source/modules/channel_following/useChannelFollowerStats.tsx

46 lines
1.5 KiB
TypeScript
Raw Normal View History

// Module ID: 11800
// Function ID: 11801
2026-07-20 16:05:17 +00:00
// Name: useChannelFollowerStats
// Dependencies: [32, 19, 11801, 1090, 504, 11465, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 11800 (useChannelFollowerStats)
import DurationsDefault from "Durations" /* 1090 */;
import ChannelFollowerActionCreatorsDefault from "ChannelFollowerActionCreators" /* 11465 */;
import _slicedToArray from "module_32" /* 32 */;
import noop from "module_19" /* 19 */;
import ChannelFollowerStatsStore from "ChannelFollowerStatsStore" /* 11801 */;
2026-07-23 10:11:24 +00:00
const require = globalThis.__r;
const require = fn;
const HOUR = DurationsDefault.Millis.HOUR;
const size = fn(2);
const result = size.fileFinishedImporting("modules/channel_following/useChannelFollowerStats.tsx");
2026-07-20 16:05:17 +00:00
export default function useChannelFollowerStats(arg0) {
_require = arg0;
const tmp = stateFromStores(noop.useState(false), 2);
2026-07-20 16:05:17 +00:00
const first = tmp[0];
2026-08-24 06:08:38 +00:00
dependencyMap = tmp[1];
const items = [ChannelFollowerStatsStore];
2026-07-20 16:05:17 +00:00
const items1 = [arg0];
stateFromStores = require("initialize").useStateFromStores(items, () => ChannelFollowerStatsStore.getFollowerStatsForChannel(closure_0), items1);
2026-07-20 16:05:17 +00:00
const items2 = [arg0, stateFromStores, first];
const effect = noop.useEffect(() => {
2026-07-20 16:05:17 +00:00
if (null == stateFromStores) {
if (!first) {
closure_2(true);
const channelFollowerStats = ChannelFollowerActionCreatorsDefault.fetchChannelFollowerStats(closure_0);
2026-07-20 16:05:17 +00:00
}
} else {
const _Date = Date;
}
if (tmp11) {
closure_2(false);
2026-07-20 16:05:17 +00:00
}
}, items2);
const items3 = [stateFromStores, first];
return items3;
};