62 lines
2.5 KiB
TypeScript
62 lines
2.5 KiB
TypeScript
// Module ID: 7785
|
|
// Function ID: 7786
|
|
// Name: ViewEmptyState
|
|
// Dependencies: [19, 17, 673, 21, 4478, 5469, 709, 1296, 2]
|
|
// Exports: default
|
|
|
|
// Module 7785 (ViewEmptyState)
|
|
import noopAll from "noop" /* 19 */;
|
|
import ThemesDefault from "Themes" /* 709 */;
|
|
import Button from "Button" /* 1296 */;
|
|
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
|
|
import { Fonts } from "ME" /* 673 */;
|
|
import jsxProd from "jsxProd" /* 21 */;
|
|
import createCacheKey from "createCacheKey" /* 4478 */;
|
|
import importDefaultResult from "createTextStyle" /* 5469 */;
|
|
|
|
require = arg1;
|
|
noopAll;
|
|
({ View: obj1, Image: c3 } = get_ActivityIndicator);
|
|
({ jsx: c4, jsxs: c5 } = jsxProd);
|
|
createCacheKey = { emptyContainer: { flex: 1, justifyContent: "center", alignItems: "center", marginHorizontal: 36 }, emptyImage: { width: 170, height: 130 }, fixOpticalIllusion: { marginTop: -50, alignItems: "center" }, emptyLabel: null, emptyText: null };
|
|
createCacheKey = {};
|
|
const merged = Object.assign(importDefaultResult(Fonts.DISPLAY_SEMIBOLD, ThemesDefault.colors.MOBILE_TEXT_HEADING_PRIMARY, 18));
|
|
createCacheKey.textAlign = "center";
|
|
createCacheKey.marginTop = 32;
|
|
createCacheKey.opacity = 0.8;
|
|
createCacheKey[3] = createCacheKey;
|
|
createCacheKey[4] = { fontFamily: Fonts.PRIMARY_MEDIUM, fontSize: 13, marginTop: 8, marginHorizontal: 10, opacity: 0.6, fontWeight: "400" };
|
|
let closure_6 = createCacheKey.createStyles(createCacheKey);
|
|
const result = require("set").fileFinishedImporting("components_native/common/ViewEmptyState.tsx");
|
|
|
|
export default function ViewEmptyState(arg0) {
|
|
({ label, text } = arg0);
|
|
({ source, style } = arg0);
|
|
const tmp = callback2();
|
|
let obj = { style: items, children: null };
|
|
items = [tmp.emptyContainer, style];
|
|
obj = { style: tmp.fixOpticalIllusion, children: null };
|
|
obj = { resizeMode: "contain", source, style: tmp.emptyImage };
|
|
const items1 = [callback(closure_3, obj), , ];
|
|
let tmp2Result = null;
|
|
if (null != label) {
|
|
obj1 = { style: null, children: null };
|
|
obj1[0] = tmp.emptyLabel;
|
|
obj1[1] = label.toUpperCase();
|
|
tmp2Result = tmp2(Button.LegacyText, obj1);
|
|
}
|
|
items1[1] = tmp2Result;
|
|
tmp2Result = null;
|
|
if (null != text) {
|
|
const obj2 = { style: null, children: null };
|
|
const items2 = [, ];
|
|
({ emptyLabel: arr3[0], emptyText: arr3[1] } = tmp);
|
|
obj2[0] = items2;
|
|
obj2[1] = text;
|
|
tmp2Result = tmp2(Button.LegacyText, obj2);
|
|
}
|
|
items1[2] = tmp2Result;
|
|
obj[1] = items1;
|
|
obj[1] = closure_5(closure_2, obj);
|
|
return callback(closure_2, obj);
|
|
};
|