decord/source/modules/expression_picker/native/useExpressionPickerInsets.tsx

26 lines
934 B
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 10230
// Function ID: 10231
2026-07-20 16:05:17 +00:00
// Name: useExpressionPickerInsets
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 676, 1629, 5446, 712, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 10230 (useExpressionPickerInsets)
import closure_2 from "noop" /* 19 */;
import { EXPRESSION_FOOTER_HEIGHT } from "ME" /* 676 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/expression_picker/native/useExpressionPickerInsets.tsx");
2026-07-20 16:05:17 +00:00
export default function useExpressionPickerInsets(hasCategories) {
2026-07-29 08:29:29 +00:00
let bottom;
2026-08-15 05:55:55 +00:00
bottom = bottom(1629)().bottom;
2026-08-24 06:08:38 +00:00
const obj = { safeAreaStyle: React.useMemo(() => ({ paddingBottom: bottom }), items), safeAreaBottomKeyboardAware: null };
items = [bottom];
2026-07-20 16:05:17 +00:00
let num = 0;
if (hasCategories.hasCategories) {
num = EXPRESSION_FOOTER_HEIGHT;
}
2026-08-24 06:08:38 +00:00
const sum = bottom(5446)({ includeKeyboardHeight: true, includeCustomKeyboardHeight: false }).insets.bottom + num;
2026-07-29 08:29:29 +00:00
obj[1] = sum + bottom(712).space.PX_16;
2026-07-20 16:05:17 +00:00
return obj;
};