decord/source/5444_useBottomSheet.js

19 lines
426 B
JavaScript
Raw Normal View History

2026-08-12 06:57:52 +00:00
// Module ID: 5444
// Function ID: 5445
2026-08-08 06:10:11 +00:00
// Name: useBottomSheet
2026-08-12 06:57:52 +00:00
// Dependencies: [19, 5445]
2026-08-08 06:10:11 +00:00
// Exports: useBottomSheet
2026-08-12 06:57:52 +00:00
// Module 5444 (useBottomSheet)
2026-08-08 06:10:11 +00:00
import { useContext } from "noop";
export const useBottomSheet = () => {
2026-08-12 06:57:52 +00:00
const tmp = useContext(require(5445) /* context */.BottomSheetContext);
2026-08-08 06:10:11 +00:00
if (null === tmp) {
throw "'useBottomSheet' cannot be used out of the BottomSheet!";
} else {
return tmp;
}
};