"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useLocaleDateTimeFormat = void 0;
const react_1 = require("react");
const ConfigProvider_1 = require("../ConfigProvider");
const useLocaleDateTimeFormat = (options) => {
    const { language } = (0, react_1.useContext)(ConfigProvider_1.ConfigContext);
    const { current } = (0, react_1.useRef)(Intl.DateTimeFormat(language, options).format);
    return current;
};
exports.useLocaleDateTimeFormat = useLocaleDateTimeFormat;
