mirror of
https://github.com/elyby/emails-renderer.git
synced 2024-12-23 21:59:48 +05:30
6a65e714ff
Replace all FunctionComponent with ComponentType. Pull new locales
24 lines
482 B
TypeScript
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>
|
|
|
|
</td>
|
|
<td style={styles.container}>
|
|
{children}
|
|
</td>
|
|
<td>
|
|
|
|
</td>
|
|
</tr>
|
|
</Table>
|
|
);
|
|
|
|
export default BaseLayout;
|