"use client";
/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
import { createContext, useContext } from "react";
import { jsx } from "react/jsx-runtime";

//#region src/components/client/providers/UDSBreakpointsConfigProvider.tsx
const UDSBreakpointsConfigContext = createContext(void 0);
const UDSBreakpointsConfigProvider = ({ children, value }) => {
	return /* @__PURE__ */ jsx(UDSBreakpointsConfigContext.Provider, {
		value,
		children
	});
};
UDSBreakpointsConfigProvider.displayName = "UDSBreakpointsConfigProvider";
const useBreakpointsConfig = () => {
	const context = useContext(UDSBreakpointsConfigContext);
	if (!context) throw new Error("useBreakpointsConfig must be used within a UDSConfigProvider or UDSBreakpointsConfigProvider");
	return { ...context };
};

//#endregion
export { UDSBreakpointsConfigProvider, useBreakpointsConfig };