/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
import { DEFAULT_COLOR_MODE } from "../modes/dist/index.js";
import { createContext, useContext } from "react";
import { jsx } from "react/jsx-runtime";
//#region src/providers/ColorModeProvider.tsx
const ColorModeContext = createContext(DEFAULT_COLOR_MODE);
function useColorMode() {
	return useContext(ColorModeContext);
}
function ColorModeProvider({ value = DEFAULT_COLOR_MODE, children }) {
	return /* @__PURE__ */ jsx(ColorModeContext.Provider, {
		value,
		children
	});
}
ColorModeProvider.displayName = "ColorModeProvider";
//#endregion
export { ColorModeContext, ColorModeProvider, useColorMode };
