lbry-desktop/src/ui/component/page/view.jsx

17 lines
336 B
React
Raw Normal View History

2018-03-26 23:32:43 +02:00
// @flow
import * as React from 'react';
import classnames from 'classnames';
type Props = {
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-03-26 23:32:43 +02:00
export default Page;