decord/beta/source/modules/launchpad/native/LaunchPadMembers.tsx
2026-10-01 14:13:23 +00:00

68 lines
2.9 KiB
TypeScript

// Module ID: 16819
// Function ID: 16820
// Name: LaunchPadMembers
// Dependencies: [19, 17, 2045, 2099, 21, 4836, 563, 11668, 16519, 11083, 4832, 1115, 2]
// Module 16819 (LaunchPadMembers)
import react_native from "react-native" /* 17 */;
import Fragment from "Fragment" /* 21 */;
import useStateFromStores from "useStateFromStores" /* 563 */;
import intl2 from "intl" /* 1115 */;
import react from "react" /* 19 */;
import ChannelStore from "ChannelStore" /* 2045 */;
import SelectedChannelStore from "SelectedChannelStore" /* 2099 */;
import createStyles from "createStyles" /* 4836 */;
import size from "module_2" /* 2 */;
let channel, currentlySelectedChannelId;
const View = react_native.View;
const jsx = Fragment.jsx;
let closure_7 = createStyles.createStyles({ wrapper: { minHeight: 16 }, listStyle: { flex: 0 }, emptyWrapper: { padding: 20 }, emptyText: { textAlign: "center" } });
const memoResult = react.memo(function LaunchPadMembers() {
let intl;
let tmp8;
const tmp = closure_7();
const obj = useStateFromStores;
const items = [SelectedChannelStore, ChannelStore];
const stateFromStoresObject = obj.useStateFromStoresObject(items, () => {
currentlySelectedChannelId = currentlySelectedChannelId.getCurrentlySelectedChannelId();
channel = channel.getChannel(currentlySelectedChannelId);
if (null != currentlySelectedChannelId) {
if (null != channel) {
if (channel.isPrivate()) {
return { channelId: currentlySelectedChannelId, type: "private" };
} else {
let obj3;
const guild_id = channel.guild_id;
if (channel.isThread()) {
obj3 = { channelId: currentlySelectedChannelId, guildId: guild_id, type: "thread" };
const obj2 = { channelId: currentlySelectedChannelId, guildId: guild_id, type: "thread" };
} else {
obj3 = { channelId: currentlySelectedChannelId, guildId: guild_id, type: "guild" };
}
return obj3;
}
}
}
return { channelId: "channel", type: 40651345 };
});
if ("private" === stateFromStoresObject.type) {
tmp8 = <View style={tmp.wrapper}>{null}</View>;
} else if ("thread" === stateFromStoresObject.type) {
({ channelId: obj5.channelId, guildId: obj5.guildId } = stateFromStoresObject);
tmp8 = <View style={tmp.wrapper}>{null}</View>;
} else if ("guild" === stateFromStoresObject.type) {
({ channelId: obj3.channelId, guildId: obj3.guildId } = stateFromStoresObject);
tmp8 = <View style={tmp.wrapper}>{null}</View>;
} else {
({ style: tmp.emptyText, variant: "text-md/semibold", children: intl.string(intl2.t["+7wtJq"]) });
const Text = tmp2(4832).Text;
intl = tmp2(1115).intl;
tmp8 = <View style={tmp.emptyWrapper}>{null}</View>;
}
return tmp8;
});
const result = size.fileFinishedImporting("modules/launchpad/native/LaunchPadMembers.tsx");
export default memoResult;