2018-03-26 23:32:43 +02:00
|
|
|
// @flow
|
|
|
|
import * as React from 'react';
|
|
|
|
import classnames from 'classnames';
|
|
|
|
|
|
|
|
type Props = {
|
2018-05-07 06:50:55 +02:00
|
|
|
children: React.Node | Array<React.Node>,
|
2019-01-09 19:39:05 +01:00
|
|
|
className: ?string,
|
2018-03-26 23:32:43 +02:00
|
|
|
};
|
|
|
|
|
2019-06-17 22:32:38 +02:00
|
|
|
function Page(props: Props) {
|
2019-09-05 01:40:01 +02:00
|
|
|
const { children, className } = props;
|
2019-06-17 22:32:38 +02:00
|
|
|
|
2019-09-05 01:40:01 +02:00
|
|
|
return <main className={classnames('main', className)}>{children}</main>;
|
2018-05-07 06:50:55 +02:00
|
|
|
}
|
|
|
|
|
2018-03-26 23:32:43 +02:00
|
|
|
export default Page;
|