diff options
Diffstat (limited to 'packages/forms/src/wrapper/index.tsx')
-rw-r--r-- | packages/forms/src/wrapper/index.tsx | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/packages/forms/src/wrapper/index.tsx b/packages/forms/src/wrapper/index.tsx new file mode 100644 index 000000000..c2444b0ea --- /dev/null +++ b/packages/forms/src/wrapper/index.tsx | |||
@@ -0,0 +1,26 @@ | |||
1 | import React, { Component } from 'react'; | ||
2 | import injectStyle from 'react-jss'; | ||
3 | import { IWithStyle } from '../typings/generic'; | ||
4 | |||
5 | import styles from './styles'; | ||
6 | |||
7 | interface IProps extends IWithStyle { | ||
8 | children: React.ReactNode; | ||
9 | } | ||
10 | |||
11 | class Wrapper extends Component<IProps> { | ||
12 | render() { | ||
13 | const { | ||
14 | children, | ||
15 | classes, | ||
16 | } = this.props; | ||
17 | |||
18 | return ( | ||
19 | <div className={classes.container}> | ||
20 | {children} | ||
21 | </div> | ||
22 | ); | ||
23 | } | ||
24 | } | ||
25 | |||
26 | export default injectStyle(styles)(Wrapper); | ||