decord/beta/source/modules/channel_following/useChannelFollowerStats.tsx
github-actions 84d017ff78 chore: update source for beta 348.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/05xxx/module_5021.js (118.4 MB)
2026-09-28 16:18:32 +00:00

45 lines
1.5 KiB
TypeScript

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