42 lines
1.4 KiB
TypeScript
42 lines
1.4 KiB
TypeScript
// Module ID: 11671
|
|
// Function ID: 11672
|
|
// Name: useChannelFollowerStats
|
|
// Dependencies: [32, 19, 11672, 1090, 504, 11332, 2]
|
|
// Exports: default
|
|
|
|
// Module 11671 (useChannelFollowerStats)
|
|
import setDefault from "set" /* 1090 */;
|
|
import closure_3 from "_slicedToArray" /* 32 */;
|
|
import closure_4 from "noop" /* 19 */;
|
|
import closure_5 from "getFollowerStatsForChannel" /* 11672 */;
|
|
|
|
const require = arg1;
|
|
const HOUR = setDefault.Millis.HOUR;
|
|
const result = require("set").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];
|
|
dependencyMap = tmp[1];
|
|
const items = [closure_5];
|
|
const items1 = [arg0];
|
|
stateFromStores = _require(504).useStateFromStores(items, () => closure_1_5.getFollowerStatsForChannel(closure_0), items1);
|
|
const items2 = [arg0, stateFromStores, first];
|
|
const effect = React.useEffect(() => {
|
|
if (null == stateFromStores) {
|
|
if (!first) {
|
|
dependencyMap(true);
|
|
const channelFollowerStats = first(11332).fetchChannelFollowerStats(closure_0);
|
|
const obj = first(11332);
|
|
}
|
|
} else {
|
|
const _Date = Date;
|
|
}
|
|
if (tmp11) {
|
|
dependencyMap(false);
|
|
}
|
|
}, items2);
|
|
const items3 = [stateFromStores, first];
|
|
return items3;
|
|
};
|