decord/source/modules/saved_messages/native/NitroLimitUpsellBar.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

60 lines
2.7 KiB
TypeScript

// Module ID: 12350
// Function ID: 12351
// Name: NitroLimitUpsellBar
// Dependencies: [17, 21, 4636, 576, 8711, 10093, 4632, 1114, 10099, 5056, 2]
// Exports: default
// Module 12350 (NitroLimitUpsellBar)
import nativeDefault from "native" /* 576 */;
import util from "util" /* 1114 */;
import Text_Text from "Text/Text" /* 4632 */;
import WarningIcon from "WarningIcon" /* 8711 */;
import _modDef10093 from "module_10093" /* 10093 */;
import NitroUpsellButtonDefault from "NitroUpsellButton" /* 10099 */;
import get_ActivityIndicator from "module_17" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import createStyles from "createStyles" /* 4636 */;
import size from "module_2" /* 2 */;
({ Image: c3, View: closure_4 } = get_ActivityIndicator);
({ jsx: hasOwnProperty, jsxs: metroRequire } = jsxProd);
let obj = { container: { alignItems: "center", backgroundColor: nativeDefault.colors.BACKGROUND_BASE_LOWEST, borderRadius: nativeDefault.radii.md, flexDirection: "row", gap: nativeDefault.space.PX_8, marginBottom: nativeDefault.space.PX_16, marginHorizontal: nativeDefault.space.PX_16, padding: nativeDefault.space.PX_12 }, icon: { height: 20, width: 20 }, text: { flex: 1 } };
let closure_7 = createStyles.createStyles(obj);
const result = size.fileFinishedImporting("modules/saved_messages/native/NitroLimitUpsellBar.tsx");
export default function NitroLimitUpsellBar(isAtLimit) {
isAtLimit = isAtLimit.isAtLimit;
({ text, onPress, loading } = isAtLimit);
const tmp = closure_7();
const obj = { style: tmp.container, children: null };
if (isAtLimit) {
const obj2 = { color: "text-feedback-warning", style: tmp.icon };
let tmp4Result = tmp4(WarningIcon.WarningIcon, obj2);
let tmp9 = tmp4;
} else {
const obj3 = { source: _modDef10093, style: tmp.icon };
tmp4Result = tmp4(React3, obj3);
tmp9 = tmp4;
}
const items = [tmp4Result, , ];
const obj4 = { variant: "text-xs/medium", color: "text-default", style: tmp.text, children: null };
const obj5 = { variant: "text-xs/bold", color: "text-brand", children: null };
const intl = util.intl;
obj5.children = intl.string(util.t.oW0eUd).toUpperCase();
const items1 = [tmp9(Text_Text.Text, obj5), " \u00B7 ", text];
obj4.children = items1;
items[1] = timestampProducer(Text_Text.Text, obj4);
if (isAtLimit) {
let Button = NitroUpsellButtonDefault;
} else {
Button = tmp12(5056).Button;
}
const obj6 = { size: "sm", text: null, onPress: null, loading: null };
const intl2 = tmp12(1114).intl;
obj6.text = intl2.string(util.t["8x0jKT"]);
obj6.onPress = onPress;
obj6.loading = loading;
items[2] = tmp9(Button, obj6);
obj.children = items;
return timestampProducer(React4, obj);
};