45 lines
1.5 KiB
TypeScript
45 lines
1.5 KiB
TypeScript
// Module ID: 11911
|
|
// Function ID: 11912
|
|
// Name: useChannelFollowerStats
|
|
// Dependencies: [32, 19, 11912, 1091, 504, 11584, 2]
|
|
// Exports: default
|
|
|
|
// Module 11911 (useChannelFollowerStats)
|
|
import DurationsDefault from "Durations" /* 1091 */;
|
|
import ChannelFollowerActionCreatorsDefault from "ChannelFollowerActionCreators" /* 11584 */;
|
|
import _slicedToArray from "module_32" /* 32 */;
|
|
import noop from "module_19" /* 19 */;
|
|
import ChannelFollowerStatsStore from "ChannelFollowerStatsStore" /* 11912 */;
|
|
|
|
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;
|
|
};
|