import { createTimeFormatter } from "./createTimeFormatter.js";
import { intl } from "../../../i18n/index.js";
const createFormatterByDimension = (dimension, locale = intl.getLocale())=>{
    if (!dimension) return (v)=>String(v);
    if (dimension.timeFormat) return createTimeFormatter(dimension.timeFormat, locale);
    return (v)=>String(v);
};
export { createFormatterByDimension };

//# sourceMappingURL=createFormatterByDimension.js.map