@fruits-chain/react-native-xiaoshu
Version:
🌈 React Native UI library
19 lines (18 loc) • 554 B
JavaScript
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
;