// Metro module 16001 (f16002). import { useContext } from "react"; import { MODE_CHANGE_PHYSICS } from "../../VoicePanelConstants"; import { CALL_TILE_GUTTER } from "../card/VoicePanelCardConstants"; import VoicePanelStateContext from "../VoicePanelStateContext"; import { useAnimatedStyle } from "../../../reanimated/ReanimatedRexport"; import * as _spring from "../../../../design/animation/reanimated/spring/spring"; const __initData = { code: "function useControlsTranslationTsx1(){const{withSpring,wrapperSpecs,MODE_CHANGE_PHYSICS,useReducedMotion,CALL_TILE_GUTTER,viewHeight}=this.__closure;return{transform:[{translateX:withSpring(wrapperSpecs.get().x,MODE_CHANGE_PHYSICS)},{translateY:withSpring(!useReducedMotion.get()&&wrapperSpecs.get().hidden?wrapperSpecs.get().height+CALL_TILE_GUTTER+viewHeight.get():wrapperSpecs.get().y,MODE_CHANGE_PHYSICS)}]};}" }; export default function useControlsTranslation(a0, a1, a2) { const useReducedMotion = useContext(VoicePanelStateContext).useReducedMotion; const S = () => ({ transform: [{ translateX: _spring.withSpring(a1.get().x, MODE_CHANGE_PHYSICS) }, { translateY: _spring.withSpring(!useReducedMotion.get() && a1.get().hidden ? a1.get().height + CALL_TILE_GUTTER + a2.get() : a1.get().y, MODE_CHANGE_PHYSICS) }] }); S.__closure = { withSpring: _spring.withSpring, wrapperSpecs: a1, MODE_CHANGE_PHYSICS, useReducedMotion, CALL_TILE_GUTTER, viewHeight: a2 }; S.__workletHash = 11281989557090; S.__initData = __initData; return useAnimatedStyle(S); };