Files
discord-decomp/modules/keyboard/native/useCustomKeyboardHeight.tsx
T
2026-11-01 12:12:55 +02:00

11 lines
526 B
TypeScript

// Metro module 5218 (f5219).
import { useAppEntryKey, DEFAULT_APP_ENTRY_KEY } from "../../window/native/AppEntryKeyContext";
import KeyboardUIStore_native from "./KeyboardUIStore.native";
export default function useCustomKeyboardHeight() {
const appEntryKey = useAppEntryKey();
return KeyboardUIStore_native((a0) => a0.byAppEntry[appEntryKey].customKeyboardHeight);
};
export function getCustomKeyboardHeight(r2 = DEFAULT_APP_ENTRY_KEY) {
return KeyboardUIStore_native.getState().byAppEntry[r2].customKeyboardHeight;
}