blob: b3e92da66ac8fec3b29fffe0314e672b38d8cf1c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
import { observer } from 'mobx-react';
import React, { Component } from 'react';
import injectStyle from 'react-jss';
import { IWithStyle } from '../typings/generic';
import styles from './styles';
interface IProps extends IWithStyle {
children: React.ReactNode;
}
@observer
class Wrapper extends Component<IProps> {
render() {
const {
children,
classes,
} = this.props;
return (
<div className={classes.container}>
{children}
</div>
);
}
}
export default injectStyle(styles)(Wrapper);
|