@cuvp1225/tango-mail
Version:
react mail components for tango
15 lines (14 loc) • 630 B
JavaScript
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',
});