decord/beta/source/modules/keyboard/native/useCustomKeyboardHeight.tsx

47 lines
1.6 KiB
TypeScript
Raw Normal View History

2026-10-12 16:32:48 +00:00
// Module ID: 6668
// Function ID: 6669
// Name: useCustomKeyboardHeight
2026-10-12 16:32:48 +00:00
// Dependencies: [1500, 1501, 558, 576, 2]
2026-10-02 13:37:24 +00:00
// Exports: getCustomKeyboardHeight
2026-10-12 16:32:48 +00:00
// Module 6668 (useCustomKeyboardHeight)
2026-10-02 13:37:24 +00:00
import react from "react" /* 576 */;
2026-10-12 16:32:48 +00:00
import AppEntryKeyContext from "AppEntryKeyContext" /* 1500 */;
import KeyboardUIStoreDefault from "KeyboardUIStore" /* 1501 */;
2026-10-02 13:37:24 +00:00
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
2026-10-12 16:32:48 +00:00
const tmp2 = ReactCompilerGating.isReactCompilerEnabled() ? (function useCustomKeyboardHeight() {
2026-10-02 13:37:24 +00:00
let tmp4;
const obj = react;
const cResult = obj.c(2);
const obj2 = AppEntryKeyContext;
const appEntryKey = obj2.useAppEntryKey();
if (cResult[0] !== appEntryKey) {
const fn = function t(arg0) {
return arg0.byAppEntry[appEntryKey].customKeyboardHeight;
};
cResult[0] = appEntryKey;
cResult[1] = fn;
tmp4 = fn;
} else {
tmp4 = cResult[1];
}
return KeyboardUIStoreDefault(tmp4);
2026-10-12 16:32:48 +00:00
}) : (function useCustomKeyboardHeight() {
2026-10-01 14:13:23 +00:00
const obj = AppEntryKeyContext;
let closure_0 = obj.useAppEntryKey();
return KeyboardUIStoreDefault((arg0) => arg0.byAppEntry[closure_0].customKeyboardHeight);
2026-10-02 13:37:24 +00:00
});
const result = size.fileFinishedImporting("modules/keyboard/native/useCustomKeyboardHeight.tsx");
export default tmp2;
export const getCustomKeyboardHeight = function getCustomKeyboardHeight(appEntryKey) {
let DEFAULT_APP_ENTRY_KEY = appEntryKey;
if (appEntryKey === undefined) {
DEFAULT_APP_ENTRY_KEY = AppEntryKeyContext.DEFAULT_APP_ENTRY_KEY;
}
2026-10-01 14:13:23 +00:00
const obj = KeyboardUIStoreDefault;
return obj.getState().byAppEntry[DEFAULT_APP_ENTRY_KEY].customKeyboardHeight;
};