/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
"use client";
"use client";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
require("../../../_virtual/_rolldown/runtime.cjs");
let react = require("react");
//#region src/components/client/Select/selectContext.tsx
const SelectFieldContext = (0, react.createContext)(null);
function useSelectFieldContext() {
	const context = (0, react.useContext)(SelectFieldContext);
	if (!context) throw new Error("Select subcomponents must be used within Select");
	return context;
}
function useOptionalSelectFieldContext() {
	return (0, react.useContext)(SelectFieldContext);
}
//#endregion
exports.SelectFieldContext = SelectFieldContext;
exports.useOptionalSelectFieldContext = useOptionalSelectFieldContext;
exports.useSelectFieldContext = useSelectFieldContext;
