decord/source/modules/user_profile/useProfileThemeValues.native.tsx

55 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 7199
// Function ID: 7200
2026-07-20 16:05:17 +00:00
// Name: useProfileThemeValues
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 4669, 647, 1367, 712, 711, 2]
2026-07-20 16:05:17 +00:00
// Exports: useProfileThemeValues
2026-08-24 06:08:38 +00:00
// Module 7199 (useProfileThemeValues)
import set from "set" /* 2 */;
import noop from "noop" /* 19 */;
import closure_4 from "maybeApplyNoTextColorForLightCustomTheme" /* 4669 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const useMemo = noop.useMemo;
const result = set.fileFinishedImporting("modules/user_profile/useProfileThemeValues.native.tsx");
2026-07-20 16:05:17 +00:00
export const useProfileThemeValues = function useProfileThemeValues(theme) {
2026-07-23 10:11:24 +00:00
const _require = theme;
2026-08-24 06:08:38 +00:00
const items = [closure_4];
2026-07-29 08:29:29 +00:00
const stateFromStores = _require(647).useStateFromStores(items, () => saturation.saturation);
2026-08-11 06:20:06 +00:00
const tmp2 = stateFromStores(1367)("useProfileThemeValues");
2026-08-24 06:08:38 +00:00
dependencyMap = tmp2;
2026-07-20 16:05:17 +00:00
const items1 = [theme, stateFromStores, tmp2];
return useMemo(() => {
2026-07-23 10:11:24 +00:00
if (null == theme) {
2026-07-20 16:05:17 +00:00
return null;
} else {
2026-07-29 08:29:29 +00:00
let obj = { theme: null, saturation: null };
obj[0] = tmp;
obj[1] = stateFromStores;
obj = { overlaySyncedWithUserTheme: null, overlay: null, sectionBox: null, dividerOpacity: null, rolePillBackgroundColor: null };
2026-08-24 06:08:38 +00:00
const internal3 = stateFromStores(712).internal;
obj[0] = internal3.resolveSemanticColor(tmp, stateFromStores(712).colors.PROFILE_GRADIENT_OVERLAY_SYNCED_WITH_USER_THEME, obj);
const internal4 = stateFromStores(712).internal;
obj[1] = internal4.resolveSemanticColor(tmp, stateFromStores(712).colors.PROFILE_GRADIENT_OVERLAY, obj);
2026-07-29 08:29:29 +00:00
if (tmp === obj4.getThemes().LIGHT) {
2026-08-24 06:08:38 +00:00
let OPACITY_WHITE_24 = tmp4(712).unsafe_rawColors.OPACITY_WHITE_24;
2026-07-20 16:05:17 +00:00
} else {
2026-08-24 06:08:38 +00:00
const internal = tmp4(712).internal;
const colors = tmp4(712).colors;
OPACITY_WHITE_24 = internal.resolveSemanticColor(tmp, dependencyMap ? colors.BACKGROUND_MOD_SUBTLE : colors.BACKGROUND_MOD_NORMAL, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[2] = OPACITY_WHITE_24;
2026-08-24 06:08:38 +00:00
obj4 = theme(711);
2026-07-29 08:29:29 +00:00
const tmp6 = theme;
2026-07-20 16:05:17 +00:00
let num = 0.12;
2026-07-29 08:29:29 +00:00
if (tmp === tmp6Result.getThemes().DARK) {
2026-07-20 16:05:17 +00:00
num = 0.24;
}
2026-07-29 08:29:29 +00:00
obj[3] = num;
2026-08-24 06:08:38 +00:00
const internal2 = tmp4(712).internal;
obj[4] = internal2.resolveSemanticColor(tmp, stateFromStores(712).colors.PROFILE_GRADIENT_ROLE_PILL_BACKGROUND, obj);
2026-07-20 16:05:17 +00:00
return obj;
}
}, items1);
};