decord/source/modules/premium_apps/ApplicationSubscriptionSystemMessageUtils.tsx
2026-08-24 06:08:38 +00:00

30 lines
1.2 KiB
TypeScript

// Module ID: 8254
// Function ID: 8255
// Name: getApplicationSubscriptionSystemMessageASTContent
// Dependencies: [1236, 2]
// Exports: getApplicationSubscriptionSystemMessageASTContent
// Module 8254 (getApplicationSubscriptionSystemMessageASTContent)
import set from "set" /* 2 */;
import getSystemLocale from "getSystemLocale" /* 1236 */;
const result = set.fileFinishedImporting("modules/premium_apps/ApplicationSubscriptionSystemMessageUtils.tsx");
export const getApplicationSubscriptionSystemMessageASTContent = function getApplicationSubscriptionSystemMessageASTContent(arg0) {
({ application, username, usernameOnClick } = arg0);
if (null != application) {
const intl2 = getSystemLocale.intl;
let obj = { username: null, applicationName: null, usernameOnClick: null };
obj[0] = username;
obj[1] = application.name;
obj[2] = usernameOnClick;
let formatToPartsResult = intl2.formatToParts(getSystemLocale.t.Tes5Ou, obj);
} else {
const intl = getSystemLocale.intl;
obj = { username: null, usernameOnClick: null };
obj[0] = username;
obj[1] = usernameOnClick;
formatToPartsResult = intl.formatToParts(getSystemLocale.t.PUJtgi, obj);
}
return formatToPartsResult;
};