decord/beta/source/modules/keyboard/native/useCustomKeyboardHeight.tsx
github-actions e7a050048e chore: update source for beta 347.7
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4943.js (118.4 MB)
2026-09-21 19:31:18 +00:00

40 lines
1.5 KiB
TypeScript

// Module ID: 7227
// Function ID: 7228
// Name: useCustomKeyboardHeight
// Dependencies: [1485, 1486, 558, 568, 2]
// Exports: getCustomKeyboardHeight
// Module 7227 (useCustomKeyboardHeight)
import c from "c" /* 568 */;
import AppEntryKeyContext from "AppEntryKeyContext" /* 1485 */;
import KeyboardUIStoreDefault from "KeyboardUIStore" /* 1486 */;
import ReactCompilerGating from "ReactCompilerGating" /* 558 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/keyboard/native/useCustomKeyboardHeight.tsx");
export default ReactCompilerGating.isReactCompilerEnabled() ? (() => {
const cResult = c.c(2);
const appEntryKey = AppEntryKeyContext.useAppEntryKey();
if (cResult[0] !== appEntryKey) {
const fn = function t(arg0) {
return arg0.byAppEntry[appEntryKey].customKeyboardHeight;
};
cResult[0] = appEntryKey;
cResult[1] = fn;
let tmp4 = fn;
} else {
tmp4 = cResult[1];
}
return KeyboardUIStoreDefault(tmp4);
}) : (() => {
closure_0 = AppEntryKeyContext.useAppEntryKey();
return KeyboardUIStoreDefault((arg0) => arg0.byAppEntry[closure_0].customKeyboardHeight);
});
export const getCustomKeyboardHeight = function getCustomKeyboardHeight(appEntryKey) {
let DEFAULT_APP_ENTRY_KEY = appEntryKey;
if (appEntryKey === undefined) {
DEFAULT_APP_ENTRY_KEY = AppEntryKeyContext.DEFAULT_APP_ENTRY_KEY;
}
return KeyboardUIStoreDefault.getState().byAppEntry[DEFAULT_APP_ENTRY_KEY].customKeyboardHeight;
};