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

27 lines
944 B
TypeScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 9593
// Function ID: 9594
2026-07-20 16:05:17 +00:00
// Name: useExpressionPickerInsets
2026-07-29 08:29:29 +00:00
// Dependencies: [19, 676, 1581, 5215, 712, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-29 08:29:29 +00:00
// Module 9593 (useExpressionPickerInsets)
import noop from "noop";
2026-07-23 10:11:24 +00:00
import { EXPRESSION_FOOTER_HEIGHT } from "ME";
const result = require("useSafeAreaInsets").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;
bottom = bottom(1581)().bottom;
const obj = { safeAreaStyle: null, safeAreaBottomKeyboardAware: null };
2026-07-20 16:05:17 +00:00
const items = [bottom];
2026-07-29 08:29:29 +00:00
obj[0] = React.useMemo(() => ({ paddingBottom: bottom }), items);
2026-07-20 16:05:17 +00:00
let num = 0;
if (hasCategories.hasCategories) {
num = EXPRESSION_FOOTER_HEIGHT;
}
2026-07-29 08:29:29 +00:00
const sum = bottom(5215)({ includeKeyboardHeight: true, includeCustomKeyboardHeight: false }).insets.bottom + num;
obj[1] = sum + bottom(712).space.PX_16;
2026-07-20 16:05:17 +00:00
return obj;
};