@fruits-chain/react-native-xiaoshu
Version:
🌈 React Native UI library
20 lines (19 loc) • 555 B
JavaScript
import isNil from 'lodash/isNil';
import React, { memo } from 'react';
import { formatDate } from "../date-picker-view/helper.js";
import Description from "./description.js";
import { jsx as _jsx } from "react/jsx-runtime";
const DescriptionDate = ({
text,
mode = 'Y-m',
...restProps
}) => {
const value = !isNil(text) ? formatDate(mode, text) : text;
return /*#__PURE__*/_jsx(Description, {
...restProps,
text: value
});
};
export default /*#__PURE__*/memo(DescriptionDate);
//# sourceMappingURL=description-date.js.map
;