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

54 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 15599
// Function ID: 15600
2026-07-20 16:05:17 +00:00
// Name: headerBackground
2026-07-31 08:44:05 +00:00
// Dependencies: [19, 21, 4723, 8834, 1581, 500, 4173, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-31 08:44:05 +00:00
// Module 15599 (headerBackground)
2026-07-29 08:29:29 +00:00
import noop from "noop";
2026-07-23 10:11:24 +00:00
import { jsx } from "jsxProd";
2026-07-22 07:54:56 +00:00
2026-07-23 10:11:24 +00:00
let require = arg1;
2026-07-20 16:05:17 +00:00
function headerBackground(arg0) {
2026-07-31 08:44:05 +00:00
return jsx(importDefault(4723), { absolute: true, tall: true, wide: true });
2026-07-20 16:05:17 +00:00
}
2026-07-31 08:44:05 +00:00
let closure_5 = { headerBackground: "Array", contentStyle: "HermesInternal" };
2026-07-29 08:29:29 +00:00
const result = require("getMixedGradientColor").fileFinishedImporting("modules/client_themes/native/useThemedHeaderOptions.tsx");
2026-07-20 16:05:17 +00:00
export default function useThemedHeaderOptions() {
2026-07-31 08:44:05 +00:00
const tmp = top(8834)();
2026-07-23 10:11:24 +00:00
const require = tmp;
2026-07-29 08:29:29 +00:00
top = top(1581)().top;
2026-07-20 16:05:17 +00:00
const items = [top, tmp];
return React.useMemo(() => {
if (tmp) {
2026-07-23 10:11:24 +00:00
let obj = tmp(outer1_2[5]);
2026-07-20 16:05:17 +00:00
if (obj.isIOS()) {
2026-07-29 08:29:29 +00:00
let num2 = 0;
2026-07-20 16:05:17 +00:00
if (top > 50) {
2026-07-29 08:29:29 +00:00
num2 = 5;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
let num3 = 44;
if (tmp2Result.isIpadOS()) {
num3 = 46;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj = { headerBackground: null, contentStyle: null };
obj[0] = outer1_6;
obj = { marginTop: null };
obj[0] = -top + num2 + (56 - num3);
obj[1] = obj;
2026-07-20 16:05:17 +00:00
return obj;
} else {
2026-07-29 08:29:29 +00:00
const obj1 = { headerBackground: null, contentStyle: null };
obj1[0] = outer1_6;
obj1[1] = outer1_5.contentStyle;
2026-07-20 16:05:17 +00:00
return obj1;
}
2026-07-29 08:29:29 +00:00
const tmp2 = tmp;
const tmp3 = outer1_2;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
return outer1_5;
2026-07-20 16:05:17 +00:00
}
}, items);
};