/*! © 2026 Yahoo, Inc. UDS v0.0.0-development */
"use client";
"use client";
import { createContext, useContext } from "react";
//#region src/components/client/Select/selectContext.tsx
const SelectFieldContext = createContext(null);
function useSelectFieldContext() {
	const context = useContext(SelectFieldContext);
	if (!context) throw new Error("Select subcomponents must be used within Select");
	return context;
}
function useOptionalSelectFieldContext() {
	return useContext(SelectFieldContext);
}
//#endregion
export { SelectFieldContext, useOptionalSelectFieldContext, useSelectFieldContext };
