aboutsummaryrefslogtreecommitdiffstats
path: root/packages/forms/src/wrapper/index.tsx
blob: 633cc4c99b1548f968f7889521f269ae5814eac5 (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);