decord/source/design/void/EmptyState/native/EmptyState.tsx
2026-08-26 06:04:24 +00:00

76 lines
3.1 KiB
TypeScript

// Module ID: 13656
// Function ID: 13657
// Name: EmptyState
// Dependencies: [19, 17, 21, 4444, 712, 1363, 4440, 2]
// Exports: default
// Module 13656 (EmptyState)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
import AccessibilityAnnouncer from "AccessibilityAnnouncer" /* 1363 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4444 */;
require = arg1;
noopAll;
({ View: obj1, Image: c3 } = get_ActivityIndicator);
({ jsx: c4, jsxs: c5 } = jsxProd);
createCacheKey = { container: null, emptyImage: null, emptyTitle: null, emptyBody: null };
createCacheKey = { flex: 1, justifyContent: "center", alignItems: "center", paddingHorizontal: 36, paddingBottom: 80, backgroundColor: ThemesDefault.colors.BACKGROUND_BASE_LOWER };
createCacheKey[0] = createCacheKey;
createCacheKey[1] = { flex: 1, maxWidth: 300, maxHeight: 200 };
createCacheKey[2] = { marginTop: 20, textTransform: "uppercase" };
createCacheKey[3] = { textAlign: "center", marginTop: 8 };
let closure_6 = createCacheKey.createStyles(createCacheKey);
const result = require("set").fileFinishedImporting("design/void/EmptyState/native/EmptyState.tsx");
export default function EmptyState(Illustration) {
const tmp = callback2();
AccessibilityAnnouncer;
if (null != Illustration.Illustration) {
let obj = { accessible: false, importantForAccessibility: "no", accessibilityRole: "none", resizeMode: "contain", style: null };
const items = [tmp.emptyImage, Illustration.imageStyle];
obj[4] = items;
let tmp8Result = callback(Illustration.Illustration, obj);
} else {
tmp8Result = null;
if (tmp6) {
obj = { resizeMode: "contain", source: null, style: null };
obj[1] = tmp2(1363).isThemeLight(tmp5) ? Illustration.lightSource : Illustration.darkSource;
const items1 = [tmp.emptyImage, Illustration.imageStyle];
obj[2] = items1;
tmp8Result = callback(closure_3, obj);
const tmp2Result = tmp2(1363);
const tmp8 = callback;
const tmp9 = closure_3;
}
tmp6 = null != Illustration.lightSource && null != Illustration.darkSource;
}
({ body, title } = Illustration);
obj1 = { style: items2, accessible: true, children: null };
items2 = [tmp.container, Illustration.style];
const items3 = [tmp8Result, , , ];
let tmp14 = null;
({ children, bodyStyle } = Illustration);
if (null != title) {
const obj2 = { variant: "heading-lg/semibold", color: "mobile-text-heading-primary", maxFontSizeMultiplier: 2, style: null, children: null };
const items4 = [tmp.emptyTitle, tmp11];
obj2[3] = items4;
obj2[4] = title;
tmp14 = callback(tmp2(4440).Text, obj2);
}
items3[1] = tmp14;
let tmp16 = null;
if (null != body) {
const obj3 = { variant: "text-md/medium", color: "text-muted", maxFontSizeMultiplier: 2, style: null, children: null };
const items5 = [tmp.emptyBody, bodyStyle];
obj3[3] = items5;
obj3[4] = body;
tmp16 = callback(tmp2(4440).Text, obj3);
}
items3[2] = tmp16;
items3[3] = children;
obj1[2] = items3;
return closure_5(closure_2, obj1);
};