decord/source/5331_useBottomSheet.js

19 lines
426 B
JavaScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 5331
// Function ID: 5332
2026-07-29 08:29:29 +00:00
// Name: useBottomSheet
2026-08-05 07:35:12 +00:00
// Dependencies: [19, 5332]
2026-07-29 08:29:29 +00:00
// Exports: useBottomSheet
2026-08-05 07:35:12 +00:00
// Module 5331 (useBottomSheet)
2026-07-29 08:29:29 +00:00
import { useContext } from "noop";
export const useBottomSheet = () => {
2026-08-05 07:35:12 +00:00
const tmp = useContext(require(5332) /* 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;
}
};