decord/source/modules/user_profile/native/UserProfileApplicationWidgetSkeletons.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

38 lines
1.4 KiB
TypeScript

// Module ID: 9019
// Function ID: 9020
// Name: ImageSkeleton
// Dependencies: [19, 17, 21, 4560, 576, 4556, 2]
// Exports: ImageSkeleton, TextSkeleton
// Module 9019 (ImageSkeleton)
import noopAll from "noop" /* 19 */;
import ThemesDefault from "Themes" /* 576 */;
import Text from "Text" /* 4556 */;
import { View } from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4560 */;
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} />;
};