koval-ui
Version:
React components collection with minimalistic design. Supports theming, layout, and input validation.
14 lines (13 loc) • 523 B
JavaScript
"use client";
import { jsx as l } from "react/jsx-runtime";
import s from "./Cells.module.css.js";
import { NumberUnit as a } from "../../Number/NumberUnit.js";
const p = ({ value: o, cellContext: r, unit: t, ...i }) => {
var e;
const m = (e = r.table.options.meta) == null ? void 0 : e.locale;
return /* @__PURE__ */ l("div", { className: s.viewNumberCell, children: /* @__PURE__ */ l(a, { ...i, unit: t, locale: m, value: Number(o) }) });
};
export {
p as ViewUnitCell
};
//# sourceMappingURL=ViewUnitCell.js.map