"use client";
const require_use_locale_context = require("./use-locale-context.cjs");
let react = require("react");
let _internationalized_date = require("@internationalized/date");
//#region src/providers/locale/use-date-formatter.ts
function useDateFormatter(props = {}) {
	const env = require_use_locale_context.useLocaleContext();
	const locale = props.locale ?? env.locale;
	return (0, react.useMemo)(() => {
		const { locale: _, ...options } = props;
		return new _internationalized_date.DateFormatter(locale, options);
	}, [locale, props]);
}
//#endregion
exports.useDateFormatter = useDateFormatter;
