jsx-email
Version:
Render JSX email components to HTML email
10 lines • 1.42 kB
JavaScript
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import { debug } from '../debug.js';
import { Conditional } from './conditional.js';
const debugProps = debug.elements.enabled ? { dataType: 'jsx-email/head' } : {};
export const Head = ({ children, enableFormatDetection = false, ...props }) => (_jsxs("head", { ...props, ...debugProps, children: [_jsx("meta", { httpEquiv: "Content-Type", content: "text/html; charset=UTF-8" }), _jsx("meta", { name: "viewport", content: "width=device-width, initial-scale=1, user-scalable=yes" }), _jsx("meta", { name: "x-apple-disable-message-reformatting" }), !enableFormatDetection && (_jsx("meta", { name: "format-detection", content: "telephone=no, date=no, address=no, email=no, url=no" })), _jsx("meta", { name: "viewport", content: "width=device-width, initial-scale=1, user-scalable=yes" }), _jsx("meta", { name: "x-apple-disable-message-reformatting" }), !enableFormatDetection && (_jsx("meta", { name: "format-detection", content: "telephone=no, date=no, address=no, email=no, url=no" })), children, _jsx(Conditional, { head: true, mso: true, children:
// prettier-ignore
// @ts-expect-error: element don't exist
_jsx("xml", { children: _jsxs("o:OfficeDocumentSettings", { children: [_jsx("o:AllowPNG", {}), _jsx("o:PixelsPerInch", { children: "96" })] }) }) })] }));
Head.displayName = 'Head';
//# sourceMappingURL=head.js.map