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

47 lines
1.3 KiB
TypeScript
Raw Normal View History

2026-07-21 06:55:02 +00:00
// Module ID: 15306
// Function ID: 116419
2026-07-20 16:05:17 +00:00
// Name: headerBackground
2026-07-21 06:55:02 +00:00
// Dependencies: []
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-21 06:55:02 +00:00
// Module 15306 (headerBackground)
2026-07-20 16:05:17 +00:00
function headerBackground(arg0) {
return jsx(importDefault(dependencyMap[2]), {});
}
2026-07-21 06:55:02 +00:00
let closure_3 = importAll(dependencyMap[0]);
const jsx = arg1(dependencyMap[1]).jsx;
2026-07-20 16:05:17 +00:00
let closure_5 = { headerBackground: undefined, contentStyle: undefined };
2026-07-21 06:55:02 +00:00
const result = arg1(dependencyMap[7]).fileFinishedImporting("modules/client_themes/native/useThemedHeaderOptions.tsx");
2026-07-20 16:05:17 +00:00
export default function useThemedHeaderOptions() {
const tmp = importDefault(dependencyMap[3])();
const arg1 = tmp;
const top = importDefault(dependencyMap[4])().top;
const importDefault = top;
const items = [top, tmp];
return React.useMemo(() => {
if (tmp) {
let obj = tmp(closure_2[5]);
if (obj.isIOS()) {
let num3 = 0;
if (top > 50) {
num3 = 5;
}
let num5 = 44;
if (obj3.isIpadOS()) {
num5 = 46;
}
obj = { headerBackground: closure_6 };
obj = { marginTop: -top + num3 + (56 - num5) };
obj.contentStyle = obj;
return obj;
} else {
const obj1 = { headerBackground: closure_6, contentStyle: contentStyle.contentStyle };
return obj1;
}
} else {
return contentStyle;
}
}, items);
};