UNPKG

@cuvp1225/tango-mail

Version:
15 lines (14 loc) 630 B
import { __rest } from "tslib"; import React from 'react'; import { defineComponent } from '@music163/tango-boot'; import { Text as Comp } from '@react-email/components'; import cx from 'classnames'; export const Text = defineComponent((_a) => { var { isTruncate, color, style, fontSize, className } = _a, props = __rest(_a, ["isTruncate", "color", "style", "fontSize", "className"]); const classNames = cx({ truncate: isTruncate, }, className); return React.createElement(Comp, Object.assign({ className: classNames, style: Object.assign({ color, fontSize }, style) }, props)); }, { name: 'Text', });