decord/source/modules/safety_hub/hooks/useAccountStandingStatusLabel.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

38 lines
1.5 KiB
TypeScript

// Module ID: 14764
// Function ID: 14765
// Name: useAccountStandingStatusLabel
// Dependencies: [11882, 11910, 14765, 1114, 14766, 2]
// Exports: useAccountStandingStatusLabel
// Module 14764 (useAccountStandingStatusLabel)
import set from "set" /* 2 */;
import getSystemLocale from "getSystemLocale" /* 1114 */;
import useSafetyHubAccountStanding from "useSafetyHubAccountStanding" /* 11882 */;
import useSafetyHubInitialized from "useSafetyHubInitialized" /* 11910 */;
import useSafetyHubFetchError from "useSafetyHubFetchError" /* 14765 */;
const result = set.fileFinishedImporting("modules/safety_hub/hooks/useAccountStandingStatusLabel.tsx");
export const useAccountStandingStatusLabel = function useAccountStandingStatusLabel() {
let obj = useSafetyHubAccountStanding;
const safetyHubAccountStanding = obj.useSafetyHubAccountStanding();
const safetyHubInitialized = useSafetyHubInitialized.useSafetyHubInitialized();
const obj2 = useSafetyHubInitialized;
const safetyHubFetchError = useSafetyHubFetchError.useSafetyHubFetchError();
const intl = getSystemLocale.intl;
if (safetyHubInitialized) {
obj = { hook: null };
obj[0] = function hook(arg0) {
return arg0;
};
let formatToPlainStringResult = intl.formatToPlainString(tmp(14766).ACCOUNT_STANDING_SHORT_STATUS[safetyHubAccountStanding.state], obj);
} else {
if (null != safetyHubFetchError) {
let ZTNur7 = tmp(1114).t.TDRvqs;
} else {
ZTNur7 = tmp(1114).t.ZTNur7;
}
formatToPlainStringResult = intl.string(ZTNur7);
}
return formatToPlainStringResult;
};