// Metro module 10527 (f10528). import MediaEngineStore from "../../../stores/MediaEngineStore"; import { InputModes } from "../../../Constants"; import { ACTION_SHEET_HANDLE_SPACING } from "../../action_sheet/native/ActionSheetConstants"; import { SMALL_ACTION_BUTTON_DIMENSIONS } from "./components/CallBarAction"; import { useIsFiveButtonLayout } from "./useIsFiveButtonLayout"; import useCanSpeakInChannel from "../../stage_channels/useCanSpeakInChannel"; import { useStateFromStores } from "../../../_bundle/Module589"; let c7069_6 = 2 * SMALL_ACTION_BUTTON_DIMENSIONS.buttonRadius + 16 + 16; export default function useActionBarHeight(a0) { const isFiveButtonLayout = useIsFiveButtonLayout(a0); const canSpeakInChannel = useCanSpeakInChannel(a0); return (isFiveButtonLayout ? c7069_6 : 88) + ACTION_SHEET_HANDLE_SPACING + (useStateFromStores([MediaEngineStore], () => MediaEngineStore.getMode() === InputModes.PUSH_TO_TALK) ? canSpeakInChannel ? 56 : 0 : 0); }; export const CALL_ACTION_BAR_HEIGHT = 88; export const FIVE_BUTTON_CONTAINER_PADDING_TOP = 16; export const FIVE_BUTTON_CONTAINER_PADDING_BOTTOM = 16; export { c7069_6 as FIVE_BUTTON_LAYOUT_ACTION_BAR_HEIGHT };