// Metro module 5270 (f5271). import { useCallback, useEffect } from "react"; import { useBottomSheetInternal } from "./Module5253"; import { findNodeHandle } from "./Module5262"; export const useScrollableSetter = function(a0, a1, a2, a3) { const node = a0; const value = a1; const value2 = a3; let r2 = arguments[4]; if (r2 === void 0) { r2 = useEffect; } const bottomSheetInternal = useBottomSheetInternal(); const { animatedScrollableType, animatedScrollableContentOffsetY, isContentHeightFixed, isScrollableRefreshable, setScrollableRef, removeScrollableRef } = bottomSheetInternal; r2(useCallback(() => { animatedScrollableContentOffsetY.value = a2.value; animatedScrollableType.value = value; isScrollableRefreshable.value = value2; isContentHeightFixed.value = false; const id = findNodeHandle(node.current); if (id) { setScrollableRef({ id, node }); } else { console.warn("Couldn't find the scrollable node handle id!"); } return () => { removeScrollableRef(node); }; }, [a0, a1, a3, animatedScrollableType, animatedScrollableContentOffsetY, a2, isScrollableRefreshable, isContentHeightFixed, setScrollableRef, removeScrollableRef])); };