mirror of
https://github.com/wassname/talk.git
synced 2026-08-14 12:50:17 +08:00
18 lines
378 B
JavaScript
18 lines
378 B
JavaScript
import React, {PropTypes} from 'react';
|
||
import styles from './Drawer.css';
|
||
|
||
const Drawer = (props) => {
|
||
return (
|
||
<div className={styles.wrapper}>
|
||
<div className={styles.drawer}>{props.children}</div>
|
||
<div className={styles.closeButton} onClick={props.close}>×</div>
|
||
</div>
|
||
);
|
||
};
|
||
|
||
Drawer.propTypes = {
|
||
active: PropTypes.bool
|
||
};
|
||
|
||
export default Drawer;
|