@tmlmobilidade/emails
Version:
14 lines (13 loc) • 772 B
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
/* * */
import { Body, Container, Head, Html, Img, Preview } from '@react-email/components';
import { getAppConfig } from '@tmlmobilidade/lib';
import { Footer } from './footer.js';
import styles from './styles.js';
/* * */
export function EmailWrapper({ children, preview }) {
const image_path = getAppConfig('auth', 'frontend_url', 'production') + '/images/tml-logo.png';
return (_jsxs(Html, { children: [_jsx(Head, {}), _jsxs(Body, { style: styles.main, children: [_jsx(Preview, { children: preview }), _jsxs(Container, { style: styles.container, children: [_jsx(Img, { alt: "TML Logo", src: image_path, width: "220px" }), children, _jsx(Footer, {})] })] })] }));
}
;
export default EmailWrapper;