UNPKG

@fruits-chain/react-native-xiaoshu

Version:
19 lines (18 loc) • 554 B
"use strict"; import isNil from 'lodash/isNil'; import React, { memo } from 'react'; import { formatThousandths } from "../helpers/index.js"; import Description from "./description.js"; import { jsx as _jsx } from "react/jsx-runtime"; const DescriptionThousand = ({ text, ...restProps }) => { const value = !isNil(text) ? formatThousandths(`${text}`) : text; return /*#__PURE__*/_jsx(Description, { ...restProps, text: value }); }; export default /*#__PURE__*/memo(DescriptionThousand); //# sourceMappingURL=description-thousand.js.map