28 lines
997 B
TypeScript
28 lines
997 B
TypeScript
// Metro module 10984 (f10985).
|
|
import UserGuildJoinRequestStore from "../guild_member_verification/UserGuildJoinRequestStore";
|
|
import GuildStore from "../../stores/GuildStore";
|
|
import { useStateFromStoresArray } from "../../_bundle/Module589";
|
|
function $mk86058($env) {
|
|
return (a0) => $env[0][a0] == null;
|
|
}
|
|
export default function usePendingFolderGuildIds() {
|
|
return useStateFromStoresArray([UserGuildJoinRequestStore, GuildStore], () => {
|
|
const [r26, r27] = [UserGuildJoinRequestStore, GuildStore];
|
|
let env26897;
|
|
const r29 = env26897 = {};
|
|
env26897[0] = void 0;
|
|
const r31 = r26.computeGuildIds();
|
|
env26897[0] = r27.getGuilds();
|
|
return r31.filter($mk86058(r29));
|
|
});
|
|
};
|
|
export function getPendingFolderGuildIds(r5 = [UserGuildJoinRequestStore, GuildStore]) {
|
|
const [r27, r28] = r5;
|
|
let env18430;
|
|
const r30 = env18430 = {};
|
|
env18430[0] = void 0;
|
|
const r32 = r27.computeGuildIds();
|
|
env18430[0] = r28.getGuilds();
|
|
return r32.filter($mk86058(r30));
|
|
}
|