29 lines
633 B
TypeScript
29 lines
633 B
TypeScript
// Copyright 2017-2018 @polkadot/ui-app authors & contributors
|
|
// This software may be modified and distributed under the terms
|
|
// of the ISC license. See the LICENSE file for details.
|
|
|
|
import { BareProps } from './types';
|
|
|
|
import React from 'react';
|
|
|
|
import classes from './util/classes';
|
|
|
|
type Props = BareProps & {
|
|
children: React.ReactNode
|
|
};
|
|
|
|
export default class Page extends React.PureComponent<Props> {
|
|
render () {
|
|
const { children, className, style } = this.props;
|
|
|
|
return (
|
|
<div
|
|
className={classes('ui--Page', className)}
|
|
style={style}
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|
|
}
|
|
}
|