/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
import { cx, getStyles } from "../styles/styler.js";
import { DEFAULT_COLOR_MODE, DEFAULT_SCALE_MODE } from "../modes/dist/index.js";
import { jsx } from "react/jsx-runtime";

//#region src/providers/ThemeProvider.tsx
function ThemeProvider({ children, colorMode = DEFAULT_COLOR_MODE, scaleMode = DEFAULT_SCALE_MODE }) {
	return /* @__PURE__ */ jsx("div", {
		className: cx("contents", getStyles({
			colorMode,
			scaleMode,
			backgroundColor: "primary"
		})),
		children
	});
}
ThemeProvider.displayName = "ThemeProvider";

//#endregion
export { ThemeProvider };