11 lines
325 B
JavaScript
11 lines
325 B
JavaScript
// Metro module 5251 (f5252).
|
|
import { useContext } from "react";
|
|
import { BottomSheetContext } from "./Module5252";
|
|
export const useBottomSheet = () => {
|
|
const context = useContext(BottomSheetContext);
|
|
if (context === null) {
|
|
throw "'useBottomSheet' cannot be used out of the BottomSheet!";
|
|
}
|
|
return context;
|
|
};
|