import { cs } from "../utils/styles.js";
import { useStyleConfig } from "../core/theme.js";
import vui from "../core/vui.js";
import Box from "../box/box.js";
import { useHeaderContext } from "./context.js";
import { jsx } from "react/jsx-runtime";

//#region src/header/headerContent.tsx
/** Controls max-width of the content and centers itself horizontally. */
const HeaderContent = vui((props, ref) => {
	const { className, ...rest } = props;
	const styles = useStyleConfig("Header", useHeaderContext());
	return /* @__PURE__ */ jsx(Box, {
		centerV: true,
		className: cs("vui-headerContent", className),
		h: 1,
		mx: "auto",
		position: "relative",
		ref,
		w: 1,
		...styles.content,
		...rest
	});
});
HeaderContent.displayName = "HeaderContent";

//#endregion
export { HeaderContent as default };
globalThis.__vuiVersion__ = "4.0.0"
//# sourceMappingURL=headerContent.js.map