decord/alpha/source/modules/channel_following/useChannelFollowerStats.tsx
github-actions 6eea20b8e1 chore: update source for alpha 348.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5014.js (118.4 MB)
2026-09-24 10:59:02 +00:00

45 lines
1.5 KiB
TypeScript

// Module ID: 12009
// Function ID: 12010
// Name: useChannelFollowerStats
// Dependencies: [32, 19, 12010, 1091, 504, 11681, 2]
// Exports: default
// Module 12009 (useChannelFollowerStats)
import DurationsDefault from "Durations" /* 1091 */;
import ChannelFollowerActionCreatorsDefault from "ChannelFollowerActionCreators" /* 11681 */;
import _slicedToArray from "module_32" /* 32 */;
import noop from "module_19" /* 19 */;
import ChannelFollowerStatsStore from "ChannelFollowerStatsStore" /* 12010 */;
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;
};