decord/alpha/source/modules/channel_following/useChannelFollowerStats.tsx
github-actions c6aa9eb120 chore: update source for alpha 349.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5030.js (118.4 MB)
2026-10-01 06:55:13 +00:00

45 lines
1.5 KiB
TypeScript

// Module ID: 11379
// Function ID: 11380
// Name: useChannelFollowerStats
// Dependencies: [32, 19, 11380, 1091, 504, 11083, 2]
// Exports: default
// Module 11379 (useChannelFollowerStats)
import DurationsDefault from "Durations" /* 1091 */;
import ChannelFollowerActionCreatorsDefault from "ChannelFollowerActionCreators" /* 11083 */;
import _slicedToArray from "module_32" /* 32 */;
import noop from "module_19" /* 19 */;
import ChannelFollowerStatsStore from "ChannelFollowerStatsStore" /* 11380 */;
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");
export default function useChannelFollowerStats(arg0) {
_require = arg0;
const tmp = stateFromStores(noop.useState(false), 2);
const first = tmp[0];
dependencyMap = tmp[1];
const items = [ChannelFollowerStatsStore];
const items1 = [arg0];
stateFromStores = require("initialize").useStateFromStores(items, () => ChannelFollowerStatsStore.getFollowerStatsForChannel(closure_0), items1);
const items2 = [arg0, stateFromStores, first];
const effect = noop.useEffect(() => {
if (null == stateFromStores) {
if (!first) {
closure_2(true);
const channelFollowerStats = ChannelFollowerActionCreatorsDefault.fetchChannelFollowerStats(closure_0);
}
} else {
const _Date = Date;
}
if (tmp11) {
closure_2(false);
}
}, items2);
const items3 = [stateFromStores, first];
return items3;
};