26 lines
546 B
JavaScript
26 lines
546 B
JavaScript
// Copyright 2017-2018 Jaco Greeff
|
|
// This software may be modified and distributed under the terms
|
|
// of the ISC license. See the LICENSE file for details.
|
|
// @flow
|
|
|
|
import type { BaseProps } from '../types';
|
|
|
|
import './Container.css';
|
|
|
|
import React from 'react';
|
|
|
|
type Props = BaseProps & {
|
|
children: React$Node
|
|
};
|
|
|
|
export default function Container ({ children, className, style }: Props): React$Node {
|
|
return (
|
|
<div
|
|
className={['ui--Container', className].join(' ')}
|
|
style={style}
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|