64 lines
2 KiB
TypeScript
64 lines
2 KiB
TypeScript
// Module ID: 8314
|
|
// Function ID: 8315
|
|
// Name: useGradientBottom
|
|
// Dependencies: [19, 4285, 4095, 8315, 2]
|
|
// Exports: useClientThemesOverride, useGradientBottom, useGradientMidpoint, useGradientTop
|
|
|
|
// Module 8314 (useGradientBottom)
|
|
import noop from "noop";
|
|
import createCacheKey from "createCacheKey";
|
|
|
|
const require = arg1;
|
|
let closure_4 = createCacheKey.createStyles({ none: { backgroundColor: "transparent" } });
|
|
const result = require("getGradientColorByPercentage").fileFinishedImporting("modules/client_themes/native/ClientThemesOverrides.tsx");
|
|
|
|
export const useGradientBottom = function useGradientBottom() {
|
|
gradientValue = gradientValue(4095).useGradientValue(gradientValue(4095).GradientPercentage.END);
|
|
const items = [gradientValue];
|
|
return React.useMemo(() => {
|
|
let tmp2;
|
|
if (null != gradientValue) {
|
|
const obj = { backgroundColor: null };
|
|
obj[0] = tmp;
|
|
tmp2 = obj;
|
|
}
|
|
return tmp2;
|
|
}, items);
|
|
};
|
|
export const useGradientTop = function useGradientTop() {
|
|
gradientValue = gradientValue(4095).useGradientValue(gradientValue(4095).GradientPercentage.START);
|
|
const items = [gradientValue];
|
|
return React.useMemo(() => {
|
|
let tmp2;
|
|
if (null != gradientValue) {
|
|
const obj = { backgroundColor: null };
|
|
obj[0] = tmp;
|
|
tmp2 = obj;
|
|
}
|
|
return tmp2;
|
|
}, items);
|
|
};
|
|
export const useGradientMidpoint = function useGradientMidpoint() {
|
|
gradientValue = gradientValue(4095).useGradientValue(gradientValue(4095).GradientPercentage.MID);
|
|
const items = [gradientValue];
|
|
return React.useMemo(() => {
|
|
let tmp2;
|
|
if (null != gradientValue) {
|
|
const obj = { backgroundColor: null };
|
|
obj[0] = tmp;
|
|
tmp2 = obj;
|
|
}
|
|
return tmp2;
|
|
}, items);
|
|
};
|
|
export const useClientThemesOverride = function useClientThemesOverride(themedChatInput) {
|
|
let tmp2;
|
|
if (importDefault(8315)()) {
|
|
let none = themedChatInput;
|
|
if (themedChatInput == null) {
|
|
none = tmp.none;
|
|
}
|
|
tmp2 = none;
|
|
}
|
|
return tmp2;
|
|
};
|