decord/source/modules/guild_onboarding/native/ConnectionCard.tsx

37 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 5832
// Function ID: 5833
2026-07-20 16:05:17 +00:00
// Name: ConnectionCard
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 5349, 21, 5833, 5850, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-25 06:04:03 +00:00
// Module 5832 (ConnectionCard)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
2026-08-25 06:04:03 +00:00
import ApplicationConnectionCardDefault from "ApplicationConnectionCard" /* 5833 */;
import ProviderConnectionCardDefault from "ProviderConnectionCard" /* 5850 */;
import { OnboardingConnectionType } from "serverPromptToClientPrompt" /* 5349 */;
2026-08-24 06:08:38 +00:00
import { jsx } from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
noopAll;
const result = require("set").fileFinishedImporting("modules/guild_onboarding/native/ConnectionCard.tsx");
2026-07-20 16:05:17 +00:00
export default function ConnectionCard(arg0) {
({ connection, guildId, location: _location } = arg0);
const connection_type = connection.connection_type;
if (OnboardingConnectionType.APPLICATION === connection_type) {
2026-07-29 08:29:29 +00:00
let obj = { connection: null, guildId: null, location: null };
obj[0] = connection;
obj[1] = guildId;
obj[2] = _location;
2026-08-24 06:08:38 +00:00
return jsx(ApplicationConnectionCardDefault, { connection: null, guildId: null, location: null });
2026-07-29 08:29:29 +00:00
} else if (tmp.PROVIDER_CONNECTED_ACCOUNT === connection_type) {
obj = { connection: null, guildId: null, location: null };
obj[0] = connection;
obj[1] = guildId;
obj[2] = _location;
2026-08-24 06:08:38 +00:00
return jsx(ProviderConnectionCardDefault, { connection: null, guildId: null, location: null });
2026-07-20 16:05:17 +00:00
} else {
const connection_type2 = connection.connection_type;
return null;
}
};