"use client";
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
import { cx } from "../../../styles/styler.js";
import { Box } from "../../Box.js";
import { VStack } from "../../VStack.js";
import { useBottomSheetInternalContext } from "./BottomSheetInternalContext.js";
import { jsx } from "react/jsx-runtime";

//#region src/components/client/BottomSheet/BottomSheetContent.tsx
function BottomSheetContent({ children, className }) {
	const scrollLocked = useBottomSheetInternalContext()?.scrollLocked ?? false;
	return /* @__PURE__ */ jsx(Box, {
		display: "block",
		overflowY: scrollLocked ? "hidden" : "auto",
		flex: "1",
		className: cx("min-h-0", scrollLocked ? void 0 : "touch-pan-y", className),
		children: /* @__PURE__ */ jsx(VStack, {
			className: "pb-[calc(env(safe-area-inset-bottom))]",
			children
		})
	});
}
BottomSheetContent.displayName = "BottomSheetContent";

//#endregion
export { BottomSheetContent };