import React, { PropTypes } from 'react'; import { connect } from 'react-redux'; const mapStateToProps = null; const mapDispatchToProps = null; const propTypes = { children: PropTypes.element, left: PropTypes.number.isRequired, right: PropTypes.number.isRequired }; export function Pane({ children, left, right }) { const style = { bottom: 0, left: left + '%', overflowX: 'hidden', overflowY: 'auto', position: 'absolute', right: right + '%', top: 0 }; return (
{ children }
); } Pane.displayName = 'Pane'; Pane.propTypes = propTypes; export default connect( mapStateToProps, mapDispatchToProps )(Pane);