decord/source/modules/client_themes/native/ClientThemesOverrides.tsx

65 lines
2 KiB
TypeScript
Raw Normal View History

2026-08-13 07:00:46 +00:00
// Module ID: 8440
// Function ID: 8441
2026-07-20 16:05:17 +00:00
// Name: useGradientBottom
2026-08-13 07:00:46 +00:00
// Dependencies: [19, 4342, 4162, 8441, 2]
2026-07-20 16:05:17 +00:00
// Exports: useClientThemesOverride, useGradientBottom, useGradientMidpoint, useGradientTop
2026-08-13 07:00:46 +00:00
// Module 8440 (useGradientBottom)
2026-07-29 08:29:29 +00:00
import noop from "noop";
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-29 08:29:29 +00:00
let closure_4 = createCacheKey.createStyles({ none: { backgroundColor: "transparent" } });
const result = require("getGradientColorByPercentage").fileFinishedImporting("modules/client_themes/native/ClientThemesOverrides.tsx");
2026-07-20 16:05:17 +00:00
export const useGradientBottom = function useGradientBottom() {
2026-08-13 07:00:46 +00:00
gradientValue = gradientValue(4162).useGradientValue(gradientValue(4162).GradientPercentage.END);
2026-07-20 16:05:17 +00:00
const items = [gradientValue];
return React.useMemo(() => {
2026-07-29 08:29:29 +00:00
let tmp2;
2026-07-20 16:05:17 +00:00
if (null != gradientValue) {
2026-07-29 08:29:29 +00:00
const obj = { backgroundColor: null };
obj[0] = tmp;
tmp2 = obj;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp2;
2026-07-20 16:05:17 +00:00
}, items);
};
export const useGradientTop = function useGradientTop() {
2026-08-13 07:00:46 +00:00
gradientValue = gradientValue(4162).useGradientValue(gradientValue(4162).GradientPercentage.START);
2026-07-20 16:05:17 +00:00
const items = [gradientValue];
return React.useMemo(() => {
2026-07-29 08:29:29 +00:00
let tmp2;
2026-07-20 16:05:17 +00:00
if (null != gradientValue) {
2026-07-29 08:29:29 +00:00
const obj = { backgroundColor: null };
obj[0] = tmp;
tmp2 = obj;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp2;
2026-07-20 16:05:17 +00:00
}, items);
};
export const useGradientMidpoint = function useGradientMidpoint() {
2026-08-13 07:00:46 +00:00
gradientValue = gradientValue(4162).useGradientValue(gradientValue(4162).GradientPercentage.MID);
2026-07-20 16:05:17 +00:00
const items = [gradientValue];
return React.useMemo(() => {
2026-07-29 08:29:29 +00:00
let tmp2;
2026-07-20 16:05:17 +00:00
if (null != gradientValue) {
2026-07-29 08:29:29 +00:00
const obj = { backgroundColor: null };
obj[0] = tmp;
tmp2 = obj;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp2;
2026-07-20 16:05:17 +00:00
}, items);
};
export const useClientThemesOverride = function useClientThemesOverride(themedChatInput) {
2026-07-29 08:29:29 +00:00
let tmp2;
2026-08-13 07:00:46 +00:00
if (importDefault(8441)()) {
2026-07-29 08:29:29 +00:00
let none = themedChatInput;
if (themedChatInput == null) {
none = tmp.none;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp2 = none;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp2;
2026-07-20 16:05:17 +00:00
};