@td-design/react-native
Version:
react-native UI组件库
17 lines • 452 B
JavaScript
import React, { memo } from 'react';
import Box from '../box';
import Text from '../text';
const Brief = /*#__PURE__*/memo(_ref => {
let {
brief
} = _ref;
if (!brief) return null;
return /*#__PURE__*/React.createElement(Box, {
marginLeft: "x1"
}, typeof brief === 'string' ? /*#__PURE__*/React.createElement(Text, {
variant: "p2",
color: "text"
}, brief) : brief);
});
export default Brief;
//# sourceMappingURL=index.js.map