decord/source/modules/user_profile/native/UserProfileApplicationWidgetSkeletons.tsx
2026-09-02 09:53:35 +00:00

38 lines
1.4 KiB
TypeScript

// Module ID: 12978
// Function ID: 12979
// Name: ImageSkeleton
// Dependencies: [19, 17, 21, 4478, 709, 4474, 2]
// Exports: ImageSkeleton, TextSkeleton
// Module 12978 (ImageSkeleton)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 709 */;
import Text from "Text" /* 4474 */;
import { View } from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4478 */;
require = arg1;
noopAll;
createCacheKey = { skeleton: null };
createCacheKey = { borderRadius: ThemesDefault.radii.sm, backgroundColor: ThemesDefault.colors.BACKGROUND_MOD_NORMAL };
createCacheKey[0] = createCacheKey;
let closure_4 = createCacheKey.createStyles(createCacheKey);
const result = require("set").fileFinishedImporting("modules/user_profile/native/UserProfileApplicationWidgetSkeletons.tsx");
export const ImageSkeleton = function ImageSkeleton(style) {
const obj = { style: null };
const items = [callback().skeleton, style.style];
obj[0] = items;
return <View style={null} />;
};
export const APPROX_CHAR_WIDTH_RATIO = 0.46;
export const TextSkeleton = function TextSkeleton(widthChars) {
let num = widthChars.widthChars;
if (num === undefined) {
num = 15;
}
const tmp2 = Text.TextStyleSheet[widthChars.variant];
const style = [callback().skeleton, { width: 0.46 * tmp2.fontSize * num, height: 0.8 * tmp2.lineHeight }];
return <View style={style} />;
};