import * as React from 'react' import {ReactElement} from 'react' // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore import mjml2html from 'mjml-browser' import {renderToMjml} from 'mjml-react' /** * This is the root component for all email templates. * @param props - props object containing children * @returns Email-compatible HTML markup * @category Components * * @example * ```jsx * * * * {titleFromValuesMjs} * Last Minute Offer... * * * * * Some text here * * * * * * * ``` */ const Email = ({children}: {children: ReactElement}) => { // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore const {html} = mjml2html(renderToMjml(children)) return ( <>
) } export default Email