Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, { Component } from "react";
- import PropTypes from "prop-types";
- import styles from "./splitScreen.scss";
- class SplitScreen extends Component {
- render() {
- const { topPane, bottomPane} = this.props;
- return (
- <div className={styles.splitScreen}>
- <div className={styles.topPane}>
- {topPane}
- </div>
- <div className={styles.bottomPane}>
- {bottomPane}
- </div>
- </div>
- );
- }
- }
- SplitScreen.propTypes = {
- topPane: PropTypes.node.isRequired,
- bottomPane: PropTypes.node.isRequired
- };
- export default SplitScreen;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement