decord/source/modules/user_settings/accessibility/getSettingsOverrideReason.tsx

39 lines
1.6 KiB
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 14775
// Function ID: 14776
2026-07-20 16:05:17 +00:00
// Name: getSettingsOverrideReason
2026-08-25 06:04:03 +00:00
// Dependencies: [4071, 685, 1236, 589, 2]
2026-07-29 08:29:29 +00:00
// Exports: default, useSettingsOverrideReason
2026-07-20 16:05:17 +00:00
2026-08-25 06:04:03 +00:00
// Module 14775 (getSettingsOverrideReason)
2026-08-24 06:08:38 +00:00
import getSystemLocale from "getSystemLocale" /* 1236 */;
2026-08-25 06:04:03 +00:00
import closure_2 from "updateExistingSettings" /* 4071 */;
2026-08-24 06:08:38 +00:00
import { SettingsOverrideReasonKeys as closure_3 } from "MAX_FAVORITES" /* 685 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
const result = require("set").fileFinishedImporting("modules/user_settings/accessibility/getSettingsOverrideReason.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default function getSettingsOverrideReason(arg0) {
if (constants.REDUCED_MOTION === arg0) {
2026-08-24 06:08:38 +00:00
const intl2 = getSystemLocale.intl;
return intl2.format(getSystemLocale.t["1dT9V4"], {});
2026-07-29 08:29:29 +00:00
} else if (tmp.REDUCED_MOTION_STICKERS === arg0) {
2026-08-24 06:08:38 +00:00
const intl = getSystemLocale.intl;
return intl.string(getSystemLocale.t["2ExvRu"]);
2026-07-29 08:29:29 +00:00
}
};
2026-07-20 16:05:17 +00:00
export const useSettingsOverrideReason = function useSettingsOverrideReason(arg0) {
2026-07-23 10:11:24 +00:00
const _require = arg0;
2026-08-24 06:08:38 +00:00
const items = [closure_2];
2026-07-29 08:29:29 +00:00
return _require(589).useStateFromStores(items, () => {
2026-08-24 06:08:38 +00:00
const appliedOverrideReasonKey = closure_1_2.getAppliedOverrideReasonKey(callback);
if (closure_1_3.REDUCED_MOTION === appliedOverrideReasonKey) {
const intl2 = callback(closure_1_1[2]).intl;
let formatResult = intl2.format(callback(closure_1_1[2]).t["1dT9V4"], {});
2026-07-29 08:29:29 +00:00
} else if (tmp2.REDUCED_MOTION_STICKERS === appliedOverrideReasonKey) {
2026-08-24 06:08:38 +00:00
const intl = callback(closure_1_1[2]).intl;
formatResult = intl.string(callback(closure_1_1[2]).t["2ExvRu"]);
2026-07-29 08:29:29 +00:00
}
return formatResult;
});
2026-07-20 16:05:17 +00:00
};