15 lines
501 B
JavaScript
15 lines
501 B
JavaScript
// Metro module 5400 (f5401).
|
|
import { useCallback } from "react";
|
|
import { useBottomSheetInternal } from "./Module5250";
|
|
export function useBottomSheetContentSizeSetter() {
|
|
const bottomSheetInternal = useBottomSheetInternal();
|
|
const { enableDynamicSizing, animatedContentHeight } = bottomSheetInternal;
|
|
return {
|
|
setContentSize: useCallback((a0) => {
|
|
if (enableDynamicSizing) {
|
|
animatedContentHeight.set(a0);
|
|
}
|
|
}, [enableDynamicSizing, animatedContentHeight])
|
|
};
|
|
}
|