/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
"use client";
import { useBottomSheetStoreInternal } from "./useBottomSheetStoreInternal.js";
import { getBottomSheetInternal } from "./useBottomSheetStore.js";
import { jsx } from "react/jsx-runtime";
import { DialogProvider } from "@ariakit/react/dialog";
//#region src/components/client/BottomSheet/BottomSheetProvider.tsx
const BottomSheetProvider = ({ children, controller: controllerProp }) => {
	const fallbackStore = useBottomSheetStoreInternal();
	return /* @__PURE__ */ jsx(DialogProvider, {
		store: controllerProp ? getBottomSheetInternal(controllerProp) : fallbackStore,
		children
	});
};
BottomSheetProvider.displayName = "BottomSheetProvider";
//#endregion
export { BottomSheetProvider };
