decord/beta/source/modules/keyboard/native/useCustomKeyboardHeight.tsx
2026-10-01 14:13:23 +00:00

26 lines
1 KiB
TypeScript

// Module ID: 5891
// Function ID: 5892
// Name: useCustomKeyboardHeight
// Dependencies: [1482, 1483, 2]
// Exports: default, getCustomKeyboardHeight
// Module 5891 (useCustomKeyboardHeight)
import AppEntryKeyContext from "AppEntryKeyContext" /* 1482 */;
import KeyboardUIStoreDefault from "KeyboardUIStore" /* 1483 */;
import size from "module_2" /* 2 */;
const result = size.fileFinishedImporting("modules/keyboard/native/useCustomKeyboardHeight.tsx");
export default function useCustomKeyboardHeight() {
const obj = AppEntryKeyContext;
let closure_0 = obj.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;
}
const obj = KeyboardUIStoreDefault;
return obj.getState().byAppEntry[DEFAULT_APP_ENTRY_KEY].customKeyboardHeight;
};