2026-09-07 16:44:02 +00:00
|
|
|
// Module ID: 11676
|
|
|
|
|
// Function ID: 11677
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: useChannelFollowerStats
|
2026-09-07 16:44:02 +00:00
|
|
|
// Dependencies: [32, 19, 11677, 1090, 504, 11337, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: default
|
|
|
|
|
|
2026-09-07 16:44:02 +00:00
|
|
|
// Module 11676 (useChannelFollowerStats)
|
2026-09-05 10:56:28 +00:00
|
|
|
import setDefault from "set" /* 1090 */;
|
2026-08-24 06:08:38 +00:00
|
|
|
import closure_3 from "_slicedToArray" /* 32 */;
|
|
|
|
|
import closure_4 from "noop" /* 19 */;
|
2026-09-07 16:44:02 +00:00
|
|
|
import closure_5 from "getFollowerStatsForChannel" /* 11677 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
|
|
|
|
const require = arg1;
|
2026-08-24 06:08:38 +00:00
|
|
|
const HOUR = setDefault.Millis.HOUR;
|
|
|
|
|
const result = require("set").fileFinishedImporting("modules/channel_following/useChannelFollowerStats.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export default function useChannelFollowerStats(arg0) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const _require = arg0;
|
|
|
|
|
const tmp = stateFromStores(React.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 = [closure_5];
|
2026-07-20 16:05:17 +00:00
|
|
|
const items1 = [arg0];
|
2026-09-05 10:56:28 +00:00
|
|
|
stateFromStores = _require(504).useStateFromStores(items, () => closure_1_5.getFollowerStatsForChannel(closure_0), items1);
|
2026-07-20 16:05:17 +00:00
|
|
|
const items2 = [arg0, stateFromStores, first];
|
|
|
|
|
const effect = React.useEffect(() => {
|
|
|
|
|
if (null == stateFromStores) {
|
|
|
|
|
if (!first) {
|
2026-07-23 10:11:24 +00:00
|
|
|
dependencyMap(true);
|
2026-09-07 16:44:02 +00:00
|
|
|
const channelFollowerStats = first(11337).fetchChannelFollowerStats(closure_0);
|
|
|
|
|
const obj = first(11337);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
const _Date = Date;
|
|
|
|
|
}
|
|
|
|
|
if (tmp11) {
|
2026-07-23 10:11:24 +00:00
|
|
|
dependencyMap(false);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}, items2);
|
|
|
|
|
const items3 = [stateFromStores, first];
|
|
|
|
|
return items3;
|
|
|
|
|
};
|