Files
discord-decomp/modules/collectibles/records/FeaturedBlockRecord.tsx
T
2026-11-01 12:12:55 +02:00

32 lines
865 B
TypeScript

// Metro module 5830 (f5831).
import { FeaturedCategorySubblockRecord } from "./FeaturedCategorySubblockRecord";
import { ShopBlockType } from "../../../_bundle/Module5829";
import { FeaturedSubblockType } from "../../../_bundle/Module5832";
let $mk77206 = function() {
return (a0) => {
let r11;
if (a0.type === FeaturedSubblockType.CATEGORY) {
r11 = FeaturedCategorySubblockRecord.fromServer(a0);
} else {
a0.type;
r11 = a0;
}
return r11;
};
};
class FeaturedBlockRecord {
type = ShopBlockType.FEATURED;
constructor(a0) {
this.subblocks = a0.subblocks.map($mk77206());
}
static fromServer(a0) {
const r10 = {
__proto__: FeaturedBlockRecord.prototype
};
r10.type = ShopBlockType.FEATURED;
r10.subblocks = a0.subblocks.map($mk77206());
return r10;
}
}
export { FeaturedBlockRecord };