import { jsx } from "react/jsx-runtime";
import { NumericFormat } from "../../../../../../../react-number-format@5.4.2_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-number-format/dist/react-number-format.es.mjs";
import "react";
import "clsx";
import { useProps } from "../../core/MantineProvider/use-props/use-props.mjs";
const defaultProps = {};
function NumberFormatter(_props) {
  const props = useProps("NumberFormatter", defaultProps, _props);
  const { value, defaultValue, ...others } = props;
  if (value === void 0) {
    return null;
  }
  return /* @__PURE__ */ jsx(NumericFormat, { displayType: "text", value, ...others });
}
const extendNumberFormatter = (c) => c;
NumberFormatter.extend = extendNumberFormatter;
NumberFormatter.displayName = "@mantine/core/NumberFormatter";
export {
  NumberFormatter
};
