@attio/react-native-bottom-sheet-toolbox
Version:
18 lines (17 loc) • 519 B
JavaScript
;
import React from "react";
import { useBottomSheetToolboxInternalContext } from "../../context";
import { BOTTOM_SHEET_DEV_TOOLS } from "../../utils";
export function useBottomSheetDevToolsDeleteSheet() {
const {
debugId
} = useBottomSheetToolboxInternalContext();
React.useEffect(() => {
return () => {
BOTTOM_SHEET_DEV_TOOLS.sendMessage("delete-sheet", {
sheetId: debugId
});
};
}, [debugId]);
}
//# sourceMappingURL=use-bottom-sheet-dev-tool-delete-sheet.js.map