decord/source/design/components/Sheet/native/useBottomSheetRef.tsx

25 lines
633 B
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 7726
// Function ID: 7727
2026-07-20 16:05:17 +00:00
// Name: useBottomSheetRef
2026-07-29 08:29:29 +00:00
// Dependencies: [19, 2]
2026-07-20 16:05:17 +00:00
// Exports: useBottomSheetRef
2026-08-24 06:08:38 +00:00
// Module 7726 (useBottomSheetRef)
import closure_0 from "noop" /* 19 */;
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("design/components/Sheet/native/useBottomSheetRef.tsx");
2026-07-20 16:05:17 +00:00
export const useBottomSheetRef = function useBottomSheetRef() {
2026-07-23 10:11:24 +00:00
ref = ref.useRef(null);
2026-07-20 16:05:17 +00:00
const items = [ref];
return {
bottomSheetRef: ref,
2026-07-23 10:11:24 +00:00
bottomSheetClose: ref.useCallback(() => {
2026-07-20 16:05:17 +00:00
const current = ref.current;
2026-07-29 08:29:29 +00:00
if (current != null) {
2026-07-20 16:05:17 +00:00
current.closeActionSheet();
}
}, items)
};
};