Files
discord-decomp/modules/skus/utils/getPricesFromServer.tsx
T
2026-11-01 12:12:55 +02:00

16 lines
513 B
TypeScript

// Metro module 4230 (f4231).
import { getPriceFromServer } from "../../../records/SubscriptionPlanRecord";
export default function getPricesFromServer(a0) {
return a0 == null ? {} : Object.entries(a0).reduce((acc, item) => {
const [r24, r8] = item;
acc[r24] = {
countryPrices: {
countryCode: r8.country_prices.country_code,
prices: r8.country_prices.prices.map((price) => getPriceFromServer(price, true))
},
paymentSourcePrices: {}
};
return acc;
}, {});
};