decord/alpha/source/modules/profile_customization/ProfilePendingImageUtils.tsx

32 lines
1.3 KiB
TypeScript
Raw Normal View History

// Module ID: 14351
// Function ID: 14352
// Name: ProfilePendingImageUtils
// Dependencies: [6606, 1370, 2]
2026-08-11 06:20:06 +00:00
// Exports: createPendingImage
// Module 14351 (ProfilePendingImageUtils)
import ProfilePendingImageTypes from "ProfilePendingImageTypes" /* 6606 */;
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const result = size.fileFinishedImporting("modules/profile_customization/ProfilePendingImageUtils.tsx");
2026-08-11 06:20:06 +00:00
export const createPendingImage = function createPendingImage(assetOrigin) {
let NEW_ASSET = assetOrigin.assetOrigin;
if (NEW_ASSET === undefined) {
NEW_ASSET = ProfilePendingImageTypes.AssetOriginTypes.NEW_ASSET;
2026-08-11 06:20:06 +00:00
}
({ imageUri, staticImageUri, description, originalAsset, originalMd5 } = assetOrigin);
if (ProfilePendingImageTypes.AssetOriginTypes.NEW_ASSET === NEW_ASSET) {
const obj = { assetOrigin: NEW_ASSET, imageUri, staticImageUri, description, originalAsset: "Array", originalMd5 };
2026-08-11 06:20:06 +00:00
return obj;
} else if (tmp3(6606).AssetOriginTypes.EDITED_ARCHIVED_ASSET === NEW_ASSET) {
const obj2 = { assetOrigin: NEW_ASSET, imageUri, staticImageUri, description, originalAsset, originalMd5 };
return obj2;
} else if (tmp3(6606).AssetOriginTypes.ARCHIVED_ASSET === NEW_ASSET) {
const obj3 = { assetOrigin: NEW_ASSET, imageUri, description: "Array", originalAsset };
return obj3;
2026-08-11 06:20:06 +00:00
} else {
tmp3(1370).assertNever(NEW_ASSET);
2026-08-11 06:20:06 +00:00
}
};