oy-vey
Version:
React utilities for building server-side email templates.
45 lines (39 loc) • 1.24 kB
JSX
import React from 'react';
import {Table, TBody, TR, TD} from 'oy-vey';
export default (props) => {
return (
<Table
width="100%"
align="center"
style={{WebkitTextSizeAdjust: '100%', msTextSizeAdjust: '100%', msoTableLspace: '0pt', msoTableRspace: '0pt', borderCollapse: 'collapse', margin: '0px auto'}}>
<TBody>
<TR>
<TD align="center">
{/* Centered column */}
<Table
width="600"
align="center"
style={{WebkitTextSizeAdjust: '100%', msTextSizeAdjust: '100%', msoTableLspace: '0pt', msoTableRspace: '0pt', borderCollapse: 'collapse', margin: '0px auto'}}>
<TBody>
<TR>
<TD>
{props.children}
</TD>
</TR>
</TBody>
</Table>
</TD>
</TR>
<TR>
<TD>
{/* We don't care to run validation on this img tag, so leave as is. */}
<img
src="https://example.com/tracker"
height="1"
style={{display: 'block', height: '1px', width: '1px'}} />
</TD>
</TR>
</TBody>
</Table>
);
};