decord/source/5255_useBottomSheet.js

19 lines
426 B
JavaScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 5255
// Function ID: 5256
2026-07-29 08:29:29 +00:00
// Name: useBottomSheet
2026-07-31 08:44:05 +00:00
// Dependencies: [19, 5256]
2026-07-29 08:29:29 +00:00
// Exports: useBottomSheet
2026-07-31 08:44:05 +00:00
// Module 5255 (useBottomSheet)
2026-07-29 08:29:29 +00:00
import { useContext } from "noop";
export const useBottomSheet = () => {
2026-07-31 08:44:05 +00:00
const tmp = useContext(require(5256) /* context */.BottomSheetContext);
2026-07-29 08:29:29 +00:00
if (null === tmp) {
throw "'useBottomSheet' cannot be used out of the BottomSheet!";
} else {
return tmp;
}
};