Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. import React, { Component } from "react";
  2. import PropTypes from "prop-types";
  3.  
  4. import styles from "./splitScreen.scss";
  5.  
  6. class SplitScreen extends Component {
  7. render() {
  8. const { topPane, bottomPane} = this.props;
  9.  
  10. return (
  11. <div className={styles.splitScreen}>
  12. <div className={styles.topPane}>
  13. {topPane}
  14. </div>
  15. <div className={styles.bottomPane}>
  16. {bottomPane}
  17. </div>
  18. </div>
  19. );
  20. }
  21. }
  22.  
  23. SplitScreen.propTypes = {
  24. topPane: PropTypes.node.isRequired,
  25. bottomPane: PropTypes.node.isRequired
  26. };
  27.  
  28. export default SplitScreen;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement