decord/source/modules/channel_following/useChannelFollowerStats.tsx
2026-08-05 07:35:12 +00:00

41 lines
1.4 KiB
TypeScript

// Module ID: 10106
// Function ID: 10107
// Name: useChannelFollowerStats
// Dependencies: [32, 19, 10107, 687, 589, 10108, 2]
// Exports: default
// Module 10106 (useChannelFollowerStats)
import _slicedToArray from "_slicedToArray";
import noop from "noop";
import getFollowerStatsForChannel from "getFollowerStatsForChannel";
const require = arg1;
const HOUR = require("set").Millis.HOUR;
const result = require("getFollowerStatsForChannel").fileFinishedImporting("modules/channel_following/useChannelFollowerStats.tsx");
export default function useChannelFollowerStats(arg0) {
const _require = arg0;
const tmp = stateFromStores(React.useState(false), 2);
const first = tmp[0];
const dependencyMap = tmp[1];
const items = [getFollowerStatsForChannel];
const items1 = [arg0];
stateFromStores = _require(589).useStateFromStores(items, () => outer1_5.getFollowerStatsForChannel(closure_0), items1);
const items2 = [arg0, stateFromStores, first];
const effect = React.useEffect(() => {
if (null == stateFromStores) {
if (!first) {
dependencyMap(true);
const channelFollowerStats = first(10108).fetchChannelFollowerStats(closure_0);
const obj = first(10108);
}
} else {
const _Date = Date;
}
if (tmp11) {
dependencyMap(false);
}
}, items2);
const items3 = [stateFromStores, first];
return items3;
};