decord/source/modules/user_profile/native/UserProfileApplicationWidgetSkeletons.tsx

39 lines
1.4 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 12647
// Function ID: 12648
2026-07-23 10:11:24 +00:00
// Name: ImageSkeleton
2026-08-25 06:04:03 +00:00
// Dependencies: [19, 17, 21, 4380, 712, 4376, 2]
2026-07-23 10:11:24 +00:00
// Exports: ImageSkeleton, TextSkeleton
2026-08-25 06:04:03 +00:00
// Module 12647 (ImageSkeleton)
2026-08-24 06:08:38 +00:00
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 712 */;
2026-08-25 06:04:03 +00:00
import Text from "Text" /* 4376 */;
2026-08-24 06:08:38 +00:00
import { View } from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
2026-08-25 06:04:03 +00:00
import createCacheKey from "createCacheKey" /* 4380 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
noopAll;
2026-07-29 08:29:29 +00:00
createCacheKey = { skeleton: null };
2026-08-24 06:08:38 +00:00
createCacheKey = { borderRadius: ThemesDefault.radii.sm, backgroundColor: ThemesDefault.colors.BACKGROUND_MOD_NORMAL };
2026-07-29 08:29:29 +00:00
createCacheKey[0] = createCacheKey;
2026-08-24 06:08:38 +00:00
let closure_4 = createCacheKey.createStyles(createCacheKey);
const result = require("set").fileFinishedImporting("modules/user_profile/native/UserProfileApplicationWidgetSkeletons.tsx");
2026-07-23 10:11:24 +00:00
export const ImageSkeleton = function ImageSkeleton(style) {
2026-07-29 08:29:29 +00:00
const obj = { style: null };
2026-08-24 06:08:38 +00:00
const items = [callback().skeleton, style.style];
2026-07-29 08:29:29 +00:00
obj[0] = items;
return <View style={null} />;
2026-07-23 10:11:24 +00:00
};
export const APPROX_CHAR_WIDTH_RATIO = 0.46;
export const TextSkeleton = function TextSkeleton(widthChars) {
let num = widthChars.widthChars;
if (num === undefined) {
num = 15;
}
2026-08-24 06:08:38 +00:00
const tmp2 = Text.TextStyleSheet[widthChars.variant];
const style = [callback().skeleton, { width: 0.46 * tmp2.fontSize * num, height: 0.8 * tmp2.lineHeight }];
2026-07-23 10:11:24 +00:00
return <View style={style} />;
};