This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,31 @@
// 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);
};