2018-05-24 10:51:06 -07:00

17 lines
460 B
TypeScript

import * as React from 'react';
interface ContainerProps {
marginTop?: string | number;
marginBottom?: string | number;
marginRight?: string | number;
marginLeft?: string | number;
children?: React.ReactNode;
}
export const Container: React.StatelessComponent<ContainerProps> = (props: ContainerProps) => {
const { children, ...style } = props;
return <div style={style}>{children}</div>;
};
Container.displayName = 'Container';