emails-renderer/src/components/BaseLayout.tsx
ErickSkrauch 6a65e714ff
Add support for RTL languages.
Replace all FunctionComponent with ComponentType.
Pull new locales
2021-03-28 01:02:52 +01:00

24 lines
482 B
TypeScript

import React, { ComponentType } from 'react';
import styles from './styles';
import { Table } from 'components/table';
const BaseLayout: ComponentType = ({ children }) => (
<Table style={styles.body}>
<tr>
<td>
&nbsp;
</td>
<td style={styles.container}>
{children}
</td>
<td>
&nbsp;
</td>
</tr>
</Table>
);
export default BaseLayout;