11 lines
385 B
JavaScript
11 lines
385 B
JavaScript
// Metro module 5359 (f5360).
|
|
import { useContext } from "react";
|
|
import { BottomSheetGestureHandlersContext } from "./Module5257";
|
|
export const useBottomSheetGestureHandlers = () => {
|
|
const context = useContext(BottomSheetGestureHandlersContext);
|
|
if (context === null) {
|
|
throw "'useBottomSheetGestureHandlers' cannot be used out of the BottomSheet!";
|
|
}
|
|
return context;
|
|
};
|