decord/source/modules/video_calls/native/useActionBarHeight.tsx

43 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 8730
// Function ID: 8731
2026-07-20 16:05:17 +00:00
// Name: sum
2026-08-24 06:08:38 +00:00
// Dependencies: [4501, 676, 6989, 8731, 8734, 10565, 589, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 8730 (sum)
import initialize from "initialize" /* 589 */;
import useIsFiveButtonLayout from "useIsFiveButtonLayout" /* 8734 */;
import useCanCurrentUserSpeakInChannelDefault from "useCanCurrentUserSpeakInChannel" /* 10565 */;
import closure_3 from "_detectH265HardwareDecode" /* 4501 */;
import { InputModes } from "ME" /* 676 */;
import { ACTION_SHEET_HANDLE_SPACING as closure_5 } from "ACTION_SHEET_START_HEIGHT_RATIO" /* 6989 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-23 10:11:24 +00:00
let sum = 2 * require("ActionButton").SMALL_ACTION_BUTTON_DIMENSIONS.buttonRadius + 16 + 16;
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/video_calls/native/useActionBarHeight.tsx");
2026-07-20 16:05:17 +00:00
export default function useActionBarHeight(id) {
2026-08-24 06:08:38 +00:00
const isFiveButtonLayout = useIsFiveButtonLayout.useIsFiveButtonLayout(id);
const obj = useIsFiveButtonLayout;
const tmp2 = useCanCurrentUserSpeakInChannelDefault(id);
const items = [closure_3];
2026-07-20 16:05:17 +00:00
let num = 88;
2026-08-24 06:08:38 +00:00
const stateFromStores = initialize.useStateFromStores(items, () => mode.getMode() === constants.PUSH_TO_TALK);
2026-07-20 16:05:17 +00:00
if (isFiveButtonLayout) {
2026-07-23 10:11:24 +00:00
num = closure_6;
2026-07-20 16:05:17 +00:00
}
let num2 = 0;
2026-08-24 06:08:38 +00:00
sum = num + closure_5;
2026-07-20 16:05:17 +00:00
if (stateFromStores) {
num2 = 0;
if (tmp2) {
num2 = 56;
}
}
return sum + num2;
};
export const CALL_ACTION_BAR_HEIGHT = 88;
export const FIVE_BUTTON_CONTAINER_PADDING_TOP = 16;
export const FIVE_BUTTON_CONTAINER_PADDING_BOTTOM = 16;
export const FIVE_BUTTON_LAYOUT_ACTION_BAR_HEIGHT = sum;