"use client";
const require_use_locale_context = require("./use-locale-context.cjs");
let react = require("react");
let _zag_js_i18n_utils = require("@zag-js/i18n-utils");
//#region src/providers/locale/use-filter.ts
function useFilter(props) {
	const env = require_use_locale_context.useLocaleContext();
	const locale = props.locale ?? env.locale;
	return (0, react.useMemo)(() => (0, _zag_js_i18n_utils.createFilter)({
		...props,
		locale
	}), [locale, props]);
}
//#endregion
exports.useFilter = useFilter;
