Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
60 lines
2.7 KiB
TypeScript
60 lines
2.7 KiB
TypeScript
// Module ID: 12363
|
|
// Function ID: 12364
|
|
// Name: NitroLimitUpsellBar
|
|
// Dependencies: [17, 21, 4638, 576, 8723, 10103, 4634, 1115, 10109, 5060, 2]
|
|
// Exports: default
|
|
|
|
// Module 12363 (NitroLimitUpsellBar)
|
|
import nativeDefault from "native" /* 576 */;
|
|
import util from "util" /* 1115 */;
|
|
import Text_Text from "Text/Text" /* 4634 */;
|
|
import WarningIcon from "WarningIcon" /* 8723 */;
|
|
import _modDef10103 from "module_10103" /* 10103 */;
|
|
import NitroUpsellButtonDefault from "NitroUpsellButton" /* 10109 */;
|
|
import get_ActivityIndicator from "module_17" /* 17 */;
|
|
import jsxProd from "jsxProd" /* 21 */;
|
|
import createStyles from "createStyles" /* 4638 */;
|
|
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: _modDef10103, 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(5060).Button;
|
|
}
|
|
const obj6 = { size: "sm", text: null, onPress: null, loading: null };
|
|
const intl2 = tmp12(1115).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);
|
|
};
|