@faire/mjml-react
Version:
React component library to generate the HTML emails on the fly
18 lines (17 loc) • 594 B
JavaScript
import React, { Component } from "react";
import { MjmlRaw } from "..";
export class MjmlTrackingPixel extends Component {
render() {
const { src } = this.props;
const trackingPixelStyle = {
display: "table",
height: "1px!important",
width: "1px!important",
border: "0!important",
margin: "0!important",
padding: "0!important",
};
return (React.createElement(MjmlRaw, null,
React.createElement("img", { src: src, style: trackingPixelStyle, width: 1, height: 1 })));
}
}