decord/source/design/components/Sheet/native/useBottomSheetRef.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

25 lines
651 B
TypeScript

// Module ID: 8287
// Function ID: 8288
// Name: useBottomSheetRef
// Dependencies: [19, 2]
// Exports: useBottomSheetRef
// Module 8287 (useBottomSheetRef)
import noop from "module_19" /* 19 */;
const size = fn(2);
const result = size.fileFinishedImporting("design/components/Sheet/native/useBottomSheetRef.tsx");
export const useBottomSheetRef = function useBottomSheetRef() {
const ref = noop.useRef(null);
const items = [ref];
return {
bottomSheetRef: ref,
bottomSheetClose: noop.useCallback(() => {
const current = ref.current;
if (current != null) {
current.closeActionSheet();
}
}, items)
};
};