decord/source/components_native/premium/PremiumUnverifiedWarning.tsx

52 lines
1.9 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 13045
// Function ID: 13046
2026-07-29 08:29:29 +00:00
// Name: render
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 1922, 21, 4380, 712, 4108, 1297, 1236, 589, 2]
2026-07-20 16:05:17 +00:00
2026-08-25 06:04:03 +00:00
// Module 13045 (render)
2026-08-24 06:08:38 +00:00
import ThemesDefault from "Themes" /* 712 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
import Button from "Button" /* 1297 */;
import importDefaultResult from "mergeGuildAvatar" /* 1922 */;
import { jsx } from "jsxProd" /* 21 */;
2026-08-25 06:04:03 +00:00
import createCacheKey from "createCacheKey" /* 4380 */;
2026-08-24 06:08:38 +00:00
import importAllResult from "noop" /* 19 */;
import importDefaultResult1 from "initialize" /* 589 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-29 08:29:29 +00:00
createCacheKey = { warning: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { color: ThemesDefault.unsafe_rawColors.RED_400, fontSize: 12, marginTop: 10 };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-08-24 06:08:38 +00:00
let closure_4 = createCacheKey.createLegacyClassComponentStyles(createCacheKey);
const PureComponent = importAllResult.PureComponent;
2026-07-29 08:29:29 +00:00
class PremiumUnverifiedWarning extends PureComponent {
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
PremiumUnverifiedWarning.prototype["render"] = function render() {
let tmp3 = null;
if (!this.props.verified) {
const obj = { style: null, children: null };
const items = [tmp.warning, tmp2];
obj[0] = items;
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
obj[1] = intl.string(getSystemLocale.t["0LgOKH"]);
tmp3 = jsx(Button.LegacyText, { style: null, children: null });
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp3;
};
PremiumUnverifiedWarning.contextType = require("ManaContext").ThemeContext;
2026-07-23 10:11:24 +00:00
let items = [importDefaultResult];
2026-08-24 06:08:38 +00:00
const tmp4 = importDefaultResult1.connectStores(items, () => {
2026-07-20 16:05:17 +00:00
const currentUser = importDefaultResult.getCurrentUser();
let verified;
2026-07-29 08:29:29 +00:00
if (currentUser != null) {
2026-07-20 16:05:17 +00:00
verified = currentUser.verified;
}
2026-07-29 08:29:29 +00:00
if (verified == null) {
verified = false;
}
return { verified };
})(PremiumUnverifiedWarning);
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("components_native/premium/PremiumUnverifiedWarning.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default tmp4;